Commit ce41525e authored by Martin Dalecki's avatar Martin Dalecki Committed by Linus Torvalds

[PATCH] kill warinigs 14/19

irlap_frame this time. Let me guess they used emacs?!
parent d7bd8ce5
...@@ -416,7 +416,7 @@ static void irlap_recv_discovery_xid_rsp(struct irlap_cb *self, ...@@ -416,7 +416,7 @@ static void irlap_recv_discovery_xid_rsp(struct irlap_cb *self,
} }
if ((discovery = kmalloc(sizeof(discovery_t), GFP_ATOMIC)) == NULL) { if ((discovery = kmalloc(sizeof(discovery_t), GFP_ATOMIC)) == NULL) {
WARNING(__FUNCTION__ "(), kmalloc failed!\n"); WARNING("%s: kmalloc failed!\n", __FUNCTION__);
return; return;
} }
memset(discovery, 0, sizeof(discovery_t)); memset(discovery, 0, sizeof(discovery_t));
...@@ -509,7 +509,7 @@ static void irlap_recv_discovery_xid_cmd(struct irlap_cb *self, ...@@ -509,7 +509,7 @@ static void irlap_recv_discovery_xid_cmd(struct irlap_cb *self,
if (info->s == 0xff) { if (info->s == 0xff) {
/* Check if things are sane at this point... */ /* Check if things are sane at this point... */
if((discovery_info == NULL) || (skb->len < 3)) { if((discovery_info == NULL) || (skb->len < 3)) {
ERROR(__FUNCTION__ "(), discovery frame to short!\n"); ERROR("%s: discovery frame to short!\n", __FUNCTION__);
return; return;
} }
...@@ -518,7 +518,7 @@ static void irlap_recv_discovery_xid_cmd(struct irlap_cb *self, ...@@ -518,7 +518,7 @@ static void irlap_recv_discovery_xid_cmd(struct irlap_cb *self,
*/ */
discovery = kmalloc(sizeof(discovery_t), GFP_ATOMIC); discovery = kmalloc(sizeof(discovery_t), GFP_ATOMIC);
if (!discovery) { if (!discovery) {
WARNING(__FUNCTION__ "(), unable to malloc!\n"); WARNING("%s: unable to malloc!\n", __FUNCTION__);
return; return;
} }
...@@ -1281,7 +1281,7 @@ int irlap_driver_rcv(struct sk_buff *skb, struct net_device *dev, ...@@ -1281,7 +1281,7 @@ int irlap_driver_rcv(struct sk_buff *skb, struct net_device *dev,
/* Check if frame is large enough for parsing */ /* Check if frame is large enough for parsing */
if (skb->len < 2) { if (skb->len < 2) {
ERROR(__FUNCTION__ "(), frame to short!\n"); ERROR("%s: frame to short!\n", __FUNCTION__);
dev_kfree_skb(skb); dev_kfree_skb(skb);
return -1; return -1;
} }
...@@ -1330,9 +1330,8 @@ int irlap_driver_rcv(struct sk_buff *skb, struct net_device *dev, ...@@ -1330,9 +1330,8 @@ int irlap_driver_rcv(struct sk_buff *skb, struct net_device *dev,
irlap_recv_srej_frame(self, skb, &info, command); irlap_recv_srej_frame(self, skb, &info, command);
break; break;
default: default:
WARNING(__FUNCTION__ WARNING("%s: Unknown S-frame %02x received!\n",
"() Unknown S-frame %02x received!\n", __FUNCTION__, info.control);
info.control);
break; break;
} }
goto out; goto out;
...@@ -1369,8 +1368,8 @@ int irlap_driver_rcv(struct sk_buff *skb, struct net_device *dev, ...@@ -1369,8 +1368,8 @@ int irlap_driver_rcv(struct sk_buff *skb, struct net_device *dev,
irlap_recv_ui_frame(self, skb, &info); irlap_recv_ui_frame(self, skb, &info);
break; break;
default: default:
WARNING(__FUNCTION__ "(), Unknown frame %02x received!\n", WARNING("%s: Unknown frame %02x received!\n",
info.control); __FUNCTION__, info.control);
break; break;
} }
out: out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment