Skip to content

Commit e79aaa9

Browse files
harshimogalapallimartinkpetersen
authored andcommitted
scsi: elx: efct: Remove redundant memset() statement
As memset() of bmbx is immediately followed by a memcpy() where bmbx is the destination, the memset() is redundant. Link: https://lore.kernel.org/r/20220505143703.45441-1-harshit.m.mogalapalli@oracle.com Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 2f9e9a7 commit e79aaa9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/scsi/elx/efct/efct_hw.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,6 @@ efct_hw_command(struct efct_hw *hw, u8 *cmd, u32 opts, void *cb, void *arg)
14021402
mutex_lock(&hw->bmbx_lock);
14031403
bmbx = hw->sli.bmbx.virt;
14041404

1405-
memset(bmbx, 0, SLI4_BMBX_SIZE);
14061405
memcpy(bmbx, cmd, SLI4_BMBX_SIZE);
14071406

14081407
if (sli_bmbx_command(&hw->sli) == 0) {

0 commit comments

Comments
 (0)