projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cf11d7
)
s390/3270: remove unnecessary pointer check
author
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Mon, 14 Oct 2013 14:48:29 +0000
(16:48 +0200)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Thu, 24 Oct 2013 15:17:09 +0000
(17:17 +0200)
Make smatch happy and remove this warning:
drivers/s390/char/raw3270.c:347 raw3270_irq() error: we previously
assumed 'rq' could be null (see line 342)
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/raw3270.c
patch
|
blob
|
history
diff --git
a/drivers/s390/char/raw3270.c
b/drivers/s390/char/raw3270.c
index
24a08e8
..
c90ae6a
100644
(file)
--- a/
drivers/s390/char/raw3270.c
+++ b/
drivers/s390/char/raw3270.c
@@
-615,7
+615,7
@@
raw3270_reset_device_cb(struct raw3270_request *rq, void *data)
if (rp->state != RAW3270_STATE_RESET)
return;
- if (rq
&& rq
->rc) {
+ if (rq->rc) {
/* Reset command failed. */
rp->state = RAW3270_STATE_INIT;
} else if (0 && MACHINE_IS_VM) {