Skip to content

Commit bade983

Browse files
Johannes ThumshirnJiri Kosina
authored andcommitted
edd: don't spam log if no EDD information is present
We've had reports from users being concerned about messages like: [ 4.487246] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found [ 4.487251] EDD information not available. While these are more or less irrelevant, tell edd.c to not annoy anyone. Signed-off-by: Johannes Thumshirn <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 1897a96 commit bade983

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

drivers/firmware/edd.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -748,14 +748,12 @@ edd_init(void)
748748
int rc=0;
749749
struct edd_device *edev;
750750

751+
if (!edd_num_devices())
752+
return -ENODEV;
753+
751754
printk(KERN_INFO "BIOS EDD facility v%s %s, %d devices found\n",
752755
EDD_VERSION, EDD_DATE, edd_num_devices());
753756

754-
if (!edd_num_devices()) {
755-
printk(KERN_INFO "EDD information not available.\n");
756-
return -ENODEV;
757-
}
758-
759757
edd_kset = kset_create_and_add("edd", NULL, firmware_kobj);
760758
if (!edd_kset)
761759
return -ENOMEM;

0 commit comments

Comments
 (0)