[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEnQRZAYXs6DJrci=mBNWuNLiCJk3AuyGiTCqQoQFQN02eQdJQ@mail.gmail.com>
Date: Thu, 1 Sep 2011 15:10:08 +0300
From: Daniel Baluta <dbaluta@...acom.com>
To: Alexander Smirnov <alex.bluesman.smirnov@...il.com>
Cc: davem@...emloft.net, dbaryshkov@...il.com, slapin@...fans.org,
linux-zigbee-devel@...ts.sourceforge.net, netdev@...r.kernel.org,
eric.dumazet@...il.com, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH v2 -next] 6LoWPAN: fix skb_copy call
> + if (NULL == skb) {
> + stat = -ENOMEM;
> + break;
> + }
This can hurt our eyes :). I think the common convention
is to use: "if (skb == NULL) " or simply "if (!skb) "
thanks,
Daniel.
Powered by blists - more mailing lists