summaryrefslogtreecommitdiffstats
path: root/drivers/net/arcnet/rfc1051.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-05-05 10:06:00 -0700
committerMichael Grzeschik <m.grzeschik@pengutronix.de>2015-09-23 08:44:25 +0200
commitd8101e7bec352b7b6a154ec2e428d01bddb7e5b4 (patch)
tree31d7cf87d1b3ded4ab5754fa9662fdd9641ea656 /drivers/net/arcnet/rfc1051.c
parent97464eddf9fdbe02abfc44676949e07708cf557f (diff)
downloadlinux-d8101e7bec352b7b6a154ec2e428d01bddb7e5b4.tar.bz2
arcnet: Remove pointer comparisons to NULL
Use direct tests of pointer instead. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Diffstat (limited to 'drivers/net/arcnet/rfc1051.c')
-rw-r--r--drivers/net/arcnet/rfc1051.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/arcnet/rfc1051.c b/drivers/net/arcnet/rfc1051.c
index 7e7eda5b0232..b76e458b19e0 100644
--- a/drivers/net/arcnet/rfc1051.c
+++ b/drivers/net/arcnet/rfc1051.c
@@ -133,7 +133,7 @@ static void rx(struct net_device *dev, int bufnum,
ofs = 256 - length;
skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC);
- if (skb == NULL) {
+ if (!skb) {
dev->stats.rx_dropped++;
return;
}