[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1253384847.2638.4.camel@Joe-Laptop.home>
Date: Sat, 19 Sep 2009 11:27:27 -0700
From: Joe Perches <joe@...ches.com>
To: Roel Kluin <roel.kluin@...il.com>
Cc: David Miller <davem@...emloft.net>, chas@....nrl.navy.mil,
linux-atm-general@...ts.sourceforge.net, netdev@...r.kernel.org,
akpm@...ux-foundation.org
Subject: Re: [PATCH] atm: dereference of he_dev->rbps_virt in
he_init_group()
On Sat, 2009-09-19 at 20:16 +0200, Roel Kluin wrote:
> + int i, ret;
> + ret = -ENOMEM;
> + ret = -ENOMEM;
> + ret = -ENOMEM;
> + ret = -ENOMEM;
> + ret = -ENOMEM;
> + ret = -ENOMEM;
> + ret = -ENOMEM;
> + ret = -ENOMEM;
> +out_destroy_rbps_pool:
> + pci_pool_destroy(he_dev->rbps_pool);
> + return ret;
It looks as if it'd be clearer to not use variable ret and
simply return -ENOMEM after the out_destroy_rbps_pool label.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists