Re: [PATCH resend] Clean up new_id and remove_id sysfs attribute routines

2012-01-25 Thread Dominik Brodowski
On Tue, Jan 24, 2012 at 04:59:36PM -0800, Jesse Barnes wrote: On Tue, 24 Jan 2012 16:33:13 -0800 Greg KH g...@kroah.com wrote: On Tue, Jan 24, 2012 at 02:35:13PM -0500, Alan Stern wrote: This patch (as1514) cleans up some places where new_id and remove_id sysfs attributes are created

[PATCH resend] Clean up new_id and remove_id sysfs attribute routines

2012-01-24 Thread Alan Stern
This patch (as1514) cleans up some places where new_id and remove_id sysfs attributes are created and deleted. Handling both attributes in a single routine rather than a pair of routines makes the code smaller. It also prevents certain kinds of errors, like one we currently have in the USB

Re: [PATCH resend] Clean up new_id and remove_id sysfs attribute routines

2012-01-24 Thread Greg KH
On Tue, Jan 24, 2012 at 02:35:13PM -0500, Alan Stern wrote: This patch (as1514) cleans up some places where new_id and remove_id sysfs attributes are created and deleted. Handling both attributes in a single routine rather than a pair of routines makes the code smaller. It also prevents

Re: [PATCH resend] Clean up new_id and remove_id sysfs attribute routines

2012-01-24 Thread Jesse Barnes
On Tue, 24 Jan 2012 16:33:13 -0800 Greg KH g...@kroah.com wrote: On Tue, Jan 24, 2012 at 02:35:13PM -0500, Alan Stern wrote: This patch (as1514) cleans up some places where new_id and remove_id sysfs attributes are created and deleted. Handling both attributes in a single routine rather