Skip to content

Commit e984fa2

Browse files
Karan Tilak Kumarmartinkpetersen
authored andcommitted
scsi: fnic: Replace use of sizeof with standard usage
Remove cast and replace use of sizeof(struct) with standard usage of sizeof. Suggested-by: Dan Carpenter <[email protected]> Fixes: a63e78e ("scsi: fnic: Add support for fabric based solicited requests and responses") Reviewed-by: Sesidhar Baddela <[email protected]> Reviewed-by: Arulprabhu Ponnusamy <[email protected]> Reviewed-by: Gian Carlo Boffa <[email protected]> Reviewed-by: Arun Easi <[email protected]> Signed-off-by: Karan Tilak Kumar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 9ae7563 commit e984fa2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/scsi/fnic/fdls_disc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,7 @@ void fdls_schedule_oxid_free_retry_work(struct work_struct *work)
318318
"Schedule oxid free. oxid idx: %d\n", idx);
319319

320320
spin_unlock_irqrestore(&fnic->fnic_lock, fnic->lock_flags);
321-
reclaim_entry = (struct reclaim_entry_s *)
322-
kzalloc(sizeof(struct reclaim_entry_s), GFP_KERNEL);
321+
reclaim_entry = kzalloc(sizeof(*reclaim_entry), GFP_KERNEL);
323322
spin_lock_irqsave(&fnic->fnic_lock, fnic->lock_flags);
324323

325324
if (!reclaim_entry) {

0 commit comments

Comments
 (0)