Skip to content

Commit f6266e3

Browse files
Alexey Dobriyantorvalds
authored andcommitted
edd: fix incorrect return of 1 from module_init
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Matt Domsch <Matt_Domsch@dell.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent d3e49af commit f6266e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/firmware/edd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ edd_init(void)
753753

754754
if (!edd_num_devices()) {
755755
printk(KERN_INFO "EDD information not available.\n");
756-
return 1;
756+
return -ENODEV;
757757
}
758758

759759
edd_kset = kset_create_and_add("edd", NULL, firmware_kobj);

0 commit comments

Comments
 (0)