mwifiex: change debug dump issue since skb maybe null
authorZhaoyang Liu <liuzy@marvell.com>
Thu, 4 Jun 2015 19:31:53 +0000 (01:01 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Jun 2015 08:49:45 +0000 (11:49 +0300)
commit7a56c4168e4453732c35b1e33a683d91f04f379f
tree87646969f3dcef192cdbc00810573b8edba93cd6
parentca7bdd95b26d1424e925f17eb546a491d93afd49
mwifiex: change debug dump issue since skb maybe null

This patch fixes semantic warning for debugging data dump feature.
Previous code is based on the assumption that skb is not null.
New change makes sure that we already have data buffer.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Zhaoyang Liu <liuzy@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/cmdevt.c