Skip to content

Commit

Permalink
scsi: scsi_debug: Delete unreachable code in inquiry_vpd_b0()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
John Garry authored and Martin K. Petersen committed Dec 14, 2022
1 parent f0a43ba commit c411a42
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/scsi/scsi_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -1511,8 +1511,6 @@ static int inquiry_vpd_b0(unsigned char *arr)
put_unaligned_be64(sdebug_write_same_length, &arr[32]);

return 0x3c; /* Mandatory page length for Logical Block Provisioning */

return sizeof(vpdb0_data);
}

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

0 comments on commit c411a42

Please sign in to comment.