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 <john.g.garry@oracle.com> Link: https://lore.kernel.org/r/20221213142122.1011886-1-john.g.garry@oracle.com Reviewed-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent f0a43ba commit c411a42

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

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)