]> git.baikalelectronics.ru Git - kernel.git/commit
liquidio: fix Smatch error
authorIntiyaz Basha <intiyaz.basha@cavium.com>
Fri, 18 Aug 2017 20:07:19 +0000 (13:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Aug 2017 22:21:14 +0000 (15:21 -0700)
commited9b36381f2efc07653c3395b4c1e0bb0b8308bd
tree063cd0f0874ab727b4c79d05d4cb1dfb6bc0dbcb
parent564fbe8422391c80b175b1d70d9da7eeede1c3ad
liquidio: fix Smatch error

Fix Smatch error by not dereferencing iq pointer if it's NULL.

See http://marc.info/?l=kernel-janitors&m=150296723301129&w=2

Also, remove unnecessary parentheses.

Fixes: cf396d4b077a ("liquidio: moved liquidio_napi_poll to lio_core.c")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Intiyaz Basha <intiyaz.basha@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_core.c