Commit 1f0d16fa authored by Martin Dalecki's avatar Martin Dalecki Committed by Linus Torvalds

[PATCH] kill warnings 9/19

- Fix improper __FUNCTION__ usage in iriap.c
- Trailing white garbage removal as well.
parent 3796e4ee
......@@ -98,7 +98,7 @@ int __init iriap_init(void)
objects = hashbin_new(HB_LOCAL);
if (!objects) {
WARNING(__FUNCTION__ "(), Can't allocate objects hashbin!\n");
WARNING("%s: Can't allocate objects hashbin!\n", __FUNCTION__);
return -ENOMEM;
}
......@@ -164,7 +164,7 @@ struct iriap_cb *iriap_open(__u8 slsap_sel, int mode, void *priv,
self = kmalloc(sizeof(struct iriap_cb), GFP_ATOMIC);
if (!self) {
WARNING(__FUNCTION__ "(), Unable to kmalloc!\n");
WARNING("%s: Unable to kmalloc!\n", __FUNCTION__);
return NULL;
}
......@@ -261,7 +261,7 @@ static int iriap_register_lsap(struct iriap_cb *self, __u8 slsap_sel, int mode)
self->lsap = irlmp_open_lsap(slsap_sel, &notify, 0);
if (self->lsap == NULL) {
ERROR(__FUNCTION__ "(), Unable to allocated LSAP!\n");
ERROR("%s: Unable to allocated LSAP!\n", __FUNCTION__);
return -1;
}
self->slsap_sel = self->lsap->slsap_sel;
......@@ -318,9 +318,6 @@ static void iriap_disconnect_indication(void *instance, void *sap,
/*
* Function iriap_disconnect_request (handle)
*
*
*
*/
void iriap_disconnect_request(struct iriap_cb *self)
{
......@@ -840,8 +837,8 @@ static int iriap_data_indication(void *instance, void *sap,
}
opcode = frame[0];
if (~opcode & IAP_LST) {
WARNING(__FUNCTION__ "(), IrIAS multiframe commands or "
"results is not implemented yet!\n");
WARNING("%s:, IrIAS multiframe commands or "
"results is not implemented yet!\n", __FUNCTION__);
dev_kfree_skb(skb);
return 0;
}
......@@ -927,16 +924,16 @@ void iriap_call_indication(struct iriap_cb *self, struct sk_buff *skb)
opcode = fp[0];
if (~opcode & 0x80) {
WARNING(__FUNCTION__ "(), IrIAS multiframe commands or results"
"is not implemented yet!\n");
WARNING("%s: IrIAS multiframe commands or results"
"is not implemented yet!\n", __FUNCTION__);
return;
}
opcode &= 0x7f; /* Mask away LST bit */
switch (opcode) {
case GET_INFO_BASE:
WARNING(__FUNCTION__
"(), GetInfoBaseDetails not implemented yet!\n");
WARNING("%s: GetInfoBaseDetails not implemented yet!\n",
__FUNCTION__);
break;
case GET_VALUE_BY_CLASS:
iriap_getvaluebyclass_indication(self, skb);
......
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