Skip to content

Commit c411a42

Browse files
johnpgarrymartinkpetersen
authored andcommitted
scsi: scsi_debug: Delete unreachable code in inquiry_vpd_b0()
The 2nd return statement in inquiry_vpd_b0() is unreachable, so delete it. Signed-off-by: John Garry <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Jason Yan <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent f0a43ba commit c411a42

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/scsi/scsi_debug.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,8 +1511,6 @@ static int inquiry_vpd_b0(unsigned char *arr)
15111511
put_unaligned_be64(sdebug_write_same_length, &arr[32]);
15121512

15131513
return 0x3c; /* Mandatory page length for Logical Block Provisioning */
1514-
1515-
return sizeof(vpdb0_data);
15161514
}
15171515

15181516
/* Block device characteristics VPD page (SBC-3) */

0 commit comments

Comments
 (0)