Re: [PATCH] net: thunderx: avoid dereferencing xcv when NULL

2017-01-31 Thread David Miller
From: Vincent Stehlé Date: Mon, 30 Jan 2017 15:06:43 +0100 > This fixes the following smatch and coccinelle warnings: > > drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119 xcv_setup_link() > error: we previously assumed 'xcv' could be null (see line 118) [smatch] > drivers/net/ethernet/

[PATCH] net: thunderx: avoid dereferencing xcv when NULL

2017-01-30 Thread Vincent Stehlé
This fixes the following smatch and coccinelle warnings: drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119 xcv_setup_link() error: we previously assumed 'xcv' could be null (see line 118) [smatch] drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119:16-20: ERROR: xcv is NULL but derefer