staging: wfx: Fix a memory leak in 'wfx_upload_beacon'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 2 Nov 2019 15:59:45 +0000 (16:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Nov 2019 12:43:40 +0000 (13:43 +0100)
commit1878c5b91430d38a0beefd0dc5cb6035913ebc7f
treea94fe9208a6a4de8117a228f5140bdccebba3465
parentd3baf1e0b2fefa9433e8d299541cf451e59c5709
staging: wfx: Fix a memory leak in 'wfx_upload_beacon'

The current code is a no-op, because all it can do is 'dev_kfree_skb(NULL)'
Remove the test before 'dev_kfree_skb()'

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20191102155945.20205-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/sta.c