nfp: don't ignore return value of wait_event_interruptible
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 22 Mar 2017 00:59:14 +0000 (17:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 19:59:08 +0000 (12:59 -0700)
commit76e8f93e8951779119de5e56a889ff30d2c4038e
tree6ca8ea7bef22a6398004dc7445ac5d54041e2d9a
parent69a4aa89315819e9eabd3a43211506d7302121a6
nfp: don't ignore return value of wait_event_interruptible

When signal interrupts waiting for an area to become available
we assume success.  Pay attention to the return code.  Unpack
the code a little bit to make it more readable.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c