Skip to content

Commit fd48c05

Browse files
ChaitanayaKulkarnimartinkpetersen
authored andcommitted
scsi: target: pscsi: Fix warning in pscsi_complete_cmd()
This fixes a compilation warning in pscsi_complete_cmd(): drivers/target/target_core_pscsi.c: In function ‘pscsi_complete_cmd’: drivers/target/target_core_pscsi.c:624:5: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] ; /* XXX: TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE */ Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Mike Christie <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent c151edd commit fd48c05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/target/target_core_pscsi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,9 @@ static void pscsi_complete_cmd(struct se_cmd *cmd, u8 scsi_status,
620620
unsigned char *buf;
621621

622622
buf = transport_kmap_data_sg(cmd);
623-
if (!buf)
623+
if (!buf) {
624624
; /* XXX: TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE */
625+
}
625626

626627
if (cdb[0] == MODE_SENSE_10) {
627628
if (!(buf[3] & 0x80))

0 commit comments

Comments
 (0)