[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20090724191633.GA28619@kroah.com>
Date: Fri, 24 Jul 2009 12:16:33 -0700
From: Greg KH <greg@...ah.com>
To: Oliver Neukum <oliver@...kum.org>
Cc: Trevor Pace <tr212206@....ca>, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Removed useless retval variables in usb-serial.c
On Fri, Jul 24, 2009 at 06:53:17PM +0200, Oliver Neukum wrote:
> Am Freitag, 24. Juli 2009 17:48:03 schrieb Trevor Pace:
> > Removed useless return value variables.
> >
> > Signed-off By: Trevor Pace <trevor.pace@....ca>
>
> These changes are a bad idea. They'll bite us in the ass as soon as we
> change locking or need to do more cleanups. The preferred form of
> error handling is
>
> r = op()
> if (r < 0)
> goto error_exit;
>
> I suggest that you don't apply them.
I agree with you, and will not be applying them.
thanks,
greg k-h
--
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