staging: wilc1000: wilc_frmw_to_linux(): fixes null check
authorLeo Kim <leo.kim@atmel.com>
Wed, 27 Jan 2016 02:50:25 +0000 (11:50 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:28:21 +0000 (15:28 -0800)
commit0953a2e33b0fca7db82081f85eb7ed6b4b76a669
treea0a13a79b9e55de9ab91cea261af004f0b91f7ab
parent4cf93d706fb9178cd9c8366c958b52a4ebca41f0
staging: wilc1000: wilc_frmw_to_linux(): fixes null check

Null checking wilc_netdev and skb->dev are already done in the begining of the
function and they are just print printing error log, so delete them.
Null checking wilc is needed before is used so add null ckeck before it is
used.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c