projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f432bc8
)
Staging: rts5208: rtsx: Use x instead of x != NULL.
author
Sandhya Bankar
<
[email protected]
>
Mon, 19 Sep 2016 09:15:04 +0000
(14:45 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 20 Sep 2016 11:57:19 +0000
(13:57 +0200)
Use x instead of x != NULL. This patch was found by checkpatch.
Signed-off-by: Sandhya Bankar <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/rts5208/rtsx.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rts5208/rtsx.c
b/drivers/staging/rts5208/rtsx.c
index d75fa8d0c3215d439482f0c7a7be57006205ee22..d7554f469d5e0ee6f3e1d0545b8527cb51d9b219 100644
(file)
--- a/
drivers/staging/rts5208/rtsx.c
+++ b/
drivers/staging/rts5208/rtsx.c
@@
-131,7
+131,7
@@
static int queuecommand_lck(struct scsi_cmnd *srb,
struct rtsx_chip *chip = dev->chip;
/* check for state-transition errors */
- if (chip->srb
!= NULL
) {
+ if (chip->srb) {
dev_err(&dev->pci->dev, "Error: chip->srb = %p\n",
chip->srb);
return SCSI_MLQUEUE_HOST_BUSY;