[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20080813.024100.169404612.davem@davemloft.net>
Date: Wed, 13 Aug 2008 02:41:00 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: brunel@...u.dk
Cc: kuznet@....inr.ac.ru, pekkas@...core.fi, jmorris@...ei.org,
yoshfuji@...ux-ipv6.org, kaber@...sh.net, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] net/rxrpc: Use an IS_ERR test rather than a NULL test
From: Julien Brunel <brunel@...u.dk>
Date: Fri, 8 Aug 2008 13:55:21 +0200
> In case of error, the function rxrpc_get_transport returns an ERR
> pointer, but never returns a NULL pointer. So after a call to this
> function, a NULL test should be replaced by an IS_ERR test.
>
> A simplified version of the semantic patch that makes this change is
> as follows:
> (http://www.emn.fr/x-info/coccinelle/)
...
> Signed-off-by: Julien Brunel <brunel@...u.dk>
> Signed-off-by: Julia Lawall <julia@...u.dk>
Applied, thank you.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists