projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58e7003
)
staging: wilc1000: wilc_frame_register: removes unused hif_drv
author
Leo Kim
<leo.kim@atmel.com>
Fri, 25 Mar 2016 12:16:47 +0000
(21:16 +0900)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000
(07:30 -0700)
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 <leo.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
patch
|
blob
|
history
diff --git
a/drivers/staging/wilc1000/host_interface.c
b/drivers/staging/wilc1000/host_interface.c
index 29d4d8a88d12a3f658170f30eb03b10f52e75848..04cbff50a0f1fac4ccdcaa145d620e0c9f2fb090 100644
(file)
--- 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));