From dc3ac5ff82e768385a7c787a211cfb131bc1924b Mon Sep 17 00:00:00 2001 From: Martin Schwidefsky Date: Mon, 14 Oct 2013 16:48:29 +0200 Subject: 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 --- drivers/s390/char/raw3270.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/s390') 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) { -- cgit v1.2.3