efi: efivar_create_sysfs_entry() should return negative error codes
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 21 Apr 2015 09:21:53 +0000 (12:21 +0300)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 30 Apr 2015 21:15:03 +0000 (22:15 +0100)
commitf7ef7e3e506023f826c1ee60b7e59b985316e180
tree47621e1e97079f079c9426623167d178a34f9e00
parentb787f68c36d49bb1d9236f403813641efa74a031
efi: efivar_create_sysfs_entry() should return negative error codes

It's not very normal to return 1 on failure and 0 on success.  There
isn't a reason for it here, the callers don't care so long as it's
non-zero on failure.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
drivers/firmware/efi/efivars.c