liquidio: do not dereference pointer if it's NULL
authorFelix Manlunas <felix.manlunas@cavium.com>
Tue, 7 Feb 2017 20:10:58 +0000 (12:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2017 20:37:43 +0000 (15:37 -0500)
commit76e0e70e6452b971a69cc9794ff4a6715c11f7f2
treea9914ee97e172cb0be8b506033f81f9988f74f97
parentca6d4480f87db9d9470d3d7bbe445953fa105e57
liquidio: do not dereference pointer if it's NULL

Fix smatch errors by not dereferencing iq pointer if it's NULL.

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

Reported-by: Dan Carpenter <dan.carpenter@oracle.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_main.c
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c