summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2013-10-14 16:48:29 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-10-24 17:17:09 +0200
commitdc3ac5ff82e768385a7c787a211cfb131bc1924b (patch)
tree7edaf2215d69ff2532d95e2cd04d5cebd8867c63 /drivers/s390
parent3cf11d776aafdb8540f4ba2c57376d2089f77dba (diff)
downloadlinux-dc3ac5ff82e768385a7c787a211cfb131bc1924b.tar.gz
linux-dc3ac5ff82e768385a7c787a211cfb131bc1924b.tar.bz2
linux-dc3ac5ff82e768385a7c787a211cfb131bc1924b.zip
s390/3270: remove unnecessary pointer check
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>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/char/raw3270.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/raw3270.c b/drivers/s390/char/raw3270.c
index 24a08e8f19e1..c90ae6a6b8b5 100644
--- 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) {