Skip to contentSkip to conversation

staging: ozwpan: remove redundant NULL check for devs

PATCH New Daeseok Youn 1 participant 1 message May 16, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: ozwpan: remove redundant NULL check for devs

The "devs" is a pointer to g_net_dev in ozmain.c. g_net_dev has a default value as empty string. So "devs" cannot be NULL, removes NULL check for "devs".

---
V2: remove unneeded lines for sending a patch.

 drivers/staging/ozwpan/ozproto.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/ozwpan/ozproto.c +1 -1
index f09acd0..767cac4 100644
@@ -765,7 +765,7 @@ static char *oz_get_next_device_name(char *s, char *dname, int max_size)
 int oz_protocol_init(char *devs)
 {
 	skb_queue_head_init(&g_rx_queue);
-	if (devs && (devs[0] == '*')) {
+	if (devs[0] == '*') {
 		oz_binding_add(NULL);
 	} else {
 		char d[32];
Signature · 1 line
1.7.1