aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Kim <[email protected]>2016-03-25 21:16:47 +0900
committerGreg Kroah-Hartman <[email protected]>2016-03-28 07:30:36 -0700
commit6d11c5517f544b50827e4ee720fad512ac28e14a (patch)
treebba549d6af94a9f70d2f77647f26d230357b445a
parent58e7003f53f32d5beb1a047fd41125d09a1a2467 (diff)
staging: wilc1000: wilc_frame_register: removes unused hif_drv
This patch removes unused hif_drv of wilc_frame_register function. It's perform an unnecessary null check and debug print log. Signed-off-by: Leo Kim <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/wilc1000/host_interface.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 29d4d8a88d12..04cbff50a0f1 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -3689,12 +3689,6 @@ int wilc_frame_register(struct wilc_vif *vif, u16 frame_type, bool reg)
{
int result = 0;
struct host_if_msg msg;
- struct host_if_drv *hif_drv = vif->hif_drv;
-
- if (!hif_drv) {
- netdev_err(vif->ndev, "driver is null\n");
- return -EFAULT;
- }
memset(&msg, 0, sizeof(struct host_if_msg));