amt: Fix NULL but dereferenced coccicheck error
authorYang Li <yang.lee@linux.alibaba.com>
Fri, 5 Nov 2021 07:12:50 +0000 (15:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Nov 2021 10:45:03 +0000 (10:45 +0000)
commit3f81c579912855f19ed1a72af8133485a6119fba
tree7da1fc8ce43d19dee912ef6c2e5889fdc8931ead
parent6789a4c05127d3f9257db6767fd7ede614e0241f
amt: Fix NULL but dereferenced coccicheck error

Eliminate the following coccicheck warning:
./drivers/net/amt.c:2795:6-9: ERROR: amt is NULL but dereferenced.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/amt.c