mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
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>
This commit is contained in:
parent
3cf11d776a
commit
dc3ac5ff82
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue