Re: [patch 12/26] ACPI: simplify scan.c coding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> akpm@xxxxxxxx <akpm@xxxxxxxx> :
> [...]
>> diff -puN drivers/acpi/scan.c~acpi-simplify-scanc-coding
>> drivers/acpi/scan.c
>> --- devel/drivers/acpi/scan.c~acpi-simplify-scanc-coding	2006-03-28
>> 14:03:04.000000000 -0800
>> +++ devel-akpm/drivers/acpi/scan.c	2006-03-28 14:03:04.000000000 -0800
> [...]
>> @@ -639,21 +631,19 @@ EXPORT_SYMBOL(acpi_bus_register_driver);
>>   */
>>  int acpi_bus_unregister_driver(struct acpi_driver *driver)
>>  {
>> -	int error = 0;
>> -
>>  	ACPI_FUNCTION_TRACE("acpi_bus_unregister_driver");
>>
>> -	if (driver) {
>> -		acpi_driver_detach(driver);
>> +	if (!driver)
>> +		return_VALUE(-EINVAL);
>
> Afaiks driver can not be NULL and no one checks the return
> code of acpi_bus_unregister_driver. More cleanup in sight ?

Sure enough.  Other unregister_driver() interfaces are void,
and this probably should be, too.  Thanks.

-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux