diff options
author | Ramon Fried <ramon.fried@gmail.com> | 2014-08-31 23:40:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-02 10:40:03 -0700 |
commit | fdaef43dca4d9ebc4c560c6f53f54197b0167d92 (patch) | |
tree | d5fc732a22d8547622da5f4e3d3d7c260a46bf90 /drivers/staging/netlogic | |
parent | a80f58c96d6dd8c7bf7ec33ca695c4fa6b956862 (diff) | |
download | lwn-fdaef43dca4d9ebc4c560c6f53f54197b0167d92.tar.gz lwn-fdaef43dca4d9ebc4c560c6f53f54197b0167d92.zip |
staging: netlogic: Fix checkpatch.pl warning
This patch fixes the following checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message
#116: FILE: ./xlr_net.c:116:
+ if (!skb) {
+ pr_err("SKB allocation failed\n");
Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/netlogic')
-rw-r--r-- | drivers/staging/netlogic/xlr_net.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/netlogic/xlr_net.c b/drivers/staging/netlogic/xlr_net.c index f8120febbf19..3f9c5ad44da5 100644 --- a/drivers/staging/netlogic/xlr_net.c +++ b/drivers/staging/netlogic/xlr_net.c @@ -112,10 +112,8 @@ static inline unsigned char *xlr_alloc_skb(void) /* skb->data is cache aligned */ skb = alloc_skb(XLR_RX_BUF_SIZE, GFP_ATOMIC); - if (!skb) { - pr_err("SKB allocation failed\n"); + if (!skb) return NULL; - } skb_data = skb->data; skb_put(skb, MAC_SKB_BACK_PTR_SIZE); skb_pull(skb, MAC_SKB_BACK_PTR_SIZE); |