mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
scsi: mpi3mr: Remove unnecessary cast
coccinelle reports a warning: WARNING: casting value returned by memory allocation function to (struct mpi3mr_throttle_group_info *) is useless To fix this, the unnecessary cast is removed. Link: https://lore.kernel.org/r/Yx+kp8NxHvDHs7dv@playground Signed-off-by: Jules Irenge <jbi.octave@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
6022f21046
commit
c863a2dcb9
1 changed files with 1 additions and 2 deletions
|
@ -3894,8 +3894,7 @@ retry_init:
|
|||
if (!mrioc->throttle_groups && mrioc->num_io_throttle_group) {
|
||||
dprint_init(mrioc, "allocating memory for throttle groups\n");
|
||||
sz = sizeof(struct mpi3mr_throttle_group_info);
|
||||
mrioc->throttle_groups = (struct mpi3mr_throttle_group_info *)
|
||||
kcalloc(mrioc->num_io_throttle_group, sz, GFP_KERNEL);
|
||||
mrioc->throttle_groups = kcalloc(mrioc->num_io_throttle_group, sz, GFP_KERNEL);
|
||||
if (!mrioc->throttle_groups)
|
||||
goto out_failed_noretry;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue