Hello Azael Avalos,

The patch 811be48a6c0e: "toshiba_acpi: Add keyboard backlight
support" from Mar 25, 2014, leads to the following static checker
warning:

        drivers/platform/x86/toshiba_acpi.c:1742 toshiba_acpi_add()
        warn: we tested 'ret' before and it was 'false'

drivers/platform/x86/toshiba_acpi.c
  1736          ret = sysfs_create_group(&dev->acpi_dev->dev.kobj,
  1737                                   &toshiba_attr_group);
  1738          if (ret) {
                    ^^^
  1739                  dev->sysfs_created = 0;
  1740                  goto error;
                             ^^^^^
  1741          }
  1742          dev->sysfs_created = !ret;
                                     ^^^^
  1743  
  1744          create_toshiba_proc_entries(dev);


regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" 
in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to