s390/3270: remove unnecessary pointer check
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 14 Oct 2013 14:48:29 +0000 (16:48 +0200)
committerMartin 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

index 24a08e8f19e1b9ed3366b5f035d4a0fd214bf97e..c90ae6a6b8b5ccb6fc9b5289e1afee95d4112f34 100644 (file)
@@ -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) {