Re: [PATCH v2] Fix error handling in dgnc_start()

2014-11-03 Thread Greg Kroah-Hartman
On Sun, Oct 19, 2014 at 02:37:28AM +0530, Devendra Naga wrote: > The error_handling for class_create, device_create are taken care > by the respective goto statements. The failure code from class_create and > device_create are assigned to the variable rc to return a proper value. > > Also removed

Re: [PATCH v2] Fix error handling in dgnc_start()

2014-10-19 Thread Dan Carpenter
On Sun, Oct 19, 2014 at 02:37:28AM +0530, Devendra Naga wrote: > The error_handling for class_create, device_create are taken care > by the respective goto statements. The failure code from class_create and > device_create are assigned to the variable rc to return a proper value. > > Also removed

[PATCH v2] Fix error handling in dgnc_start()

2014-10-18 Thread Devendra Naga
The error_handling for class_create, device_create are taken care by the respective goto statements. The failure code from class_create and device_create are assigned to the variable rc to return a proper value. Also removed the rc initialisation to 0 as it gets changed in the call to register_chr