projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b54dc46
)
scsi: ppa: Remove superfluous breaks
author
Liao Pingfang
<liao.pingfang@zte.com.cn>
Tue, 14 Jul 2020 10:59:31 +0000
(18:59 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Sat, 25 Jul 2020 02:09:55 +0000
(22:09 -0400)
Remove superfluous breaks, as there is a "return" before them.
Link:
https://lore.kernel.org/r/1594724371-11677-1-git-send-email-wang.yi59@zte.com.cn
Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn>
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ppa.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/ppa.c
b/drivers/scsi/ppa.c
index a406cc825426ca6f5b1de0b48028d5ae2c4ebc00..0ae800c5b7396aa5944eb36bf8bbb4ae5f1f632c 100644
(file)
--- a/
drivers/scsi/ppa.c
+++ b/
drivers/scsi/ppa.c
@@
-779,7
+779,6
@@
static int ppa_engine(ppa_struct *dev, struct scsi_cmnd *cmd)
(DID_OK << 16) + (h << 8) + (l & STATUS_MASK);
}
return 0; /* Finished */
- break;
default:
printk(KERN_ERR "ppa: Invalid scsi phase\n");
@@
-847,10
+846,8
@@
static int ppa_abort(struct scsi_cmnd *cmd)
case 1: /* Have not connected to interface */
dev->cur_cmd = NULL; /* Forget the problem */
return SUCCESS;
- break;
default: /* SCSI command sent, can not abort */
return FAILED;
- break;
}
}