mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 05:04:09 +08: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
@ -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 New Issue
Block a user