Skip to content

Commit

Permalink
s390/3270: remove unnecessary pointer check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Martin Schwidefsky committed Oct 24, 2013
1 parent 3cf11d7 commit dc3ac5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/char/raw3270.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dc3ac5f

Please sign in to comment.