Received: by 10.223.176.5 with SMTP id f5csp665541wra; Fri, 9 Feb 2018 05:22:13 -0800 (PST) X-Google-Smtp-Source: AH8x227ra1Nm+pr4JXXZt4BXX6BwzkEA+smOD7/TxSyr8HozhzKWeHok6It8MxixBiI7V1IdB8rB X-Received: by 10.101.74.134 with SMTP id b6mr2398532pgu.137.1518182533645; Fri, 09 Feb 2018 05:22:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518182533; cv=none; d=google.com; s=arc-20160816; b=GgKGVcRh/5BHBgZ8t4eX3XHwEvFwDkulYQvJdnxdaN+gdD5ybkaDXSvWfvwSwNNm3b qO5CLWTy8yfrbdG8nYrufbXKYurb5E9jQMZhJvs4FXR8BaPEymlHdg51fpGccnDCM19l dlFp8ctRfSqFolKlZL3H+nBdjDPahG99voQuN4ZfUHE4OMVMCfejL1aDylNCgC4FbG64 xtF4sBfluBW1vqeAI3k5nc+MrIMootPt7l5xj1n2itZ8xnjnTmKBu18RQtfuWP4tn/fV S3QM8FwAUppPxl0HjmCXEhOkTPtAjbzqbmXfEDGQiSN2j4lZYKywSLfqQdg+4+5wL1QO hYQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=vPD64IU2ODLDBv/LToRlSWfOI7Bam6XJU8VQ0IK9IJM=; b=SH63lpkVQMUkqZp+qCwOP+Xn30RA06ESRVyc1cqD/SkAlpJ25LrCyEP6fPCmMuwsWo Vg3HEGkpvtr1EFHQzriTDPDDr8nEtmcYZkAMad1K8K+e9kJzCRzFmQRYI2XsUbGmYdqM Zq9PNzX0zLbX25GjnUPLlSSCPh2bzKLubsN9irN1eKa6EaJO9AUUQDFxi8jh65R5uzNz tZwEn51SUILoN+QC50Emh9uaWE051a+AnO5G4cjrVHZlffT+rNXLOnf295hiaYi+IeC3 TwhVgSv3BcKRCXxMwc7IrLlbmyS5fuyH46FDngvuuMNFcFIT05Knlxhuual0osKzvoVl 9Mfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si1566179pld.447.2018.02.09.05.21.59; Fri, 09 Feb 2018 05:22:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751248AbeBINUx (ORCPT + 99 others); Fri, 9 Feb 2018 08:20:53 -0500 Received: from mx2.suse.de ([195.135.220.15]:48699 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbeBINUw (ORCPT ); Fri, 9 Feb 2018 08:20:52 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E785BAD02 for ; Fri, 9 Feb 2018 13:20:50 +0000 (UTC) From: Johannes Thumshirn To: Jiri Kosina Cc: Linux Kernel Mailinglist , Johannes Thumshirn Subject: [PATCH TRIVIAL] edd: don't spam log if no EDD information is present Date: Fri, 9 Feb 2018 14:20:45 +0100 Message-Id: <20180209132045.21433-1-jthumshirn@suse.de> X-Mailer: git-send-email 2.13.6 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Jiri, I know you're not the edd maintainer (there's none) but I've seen you've taken edd patches, so ;-). drivers/firmware/edd.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/firmware/edd.c b/drivers/firmware/edd.c index 60a8f1363a10..1b82c89a49df 100644 --- a/drivers/firmware/edd.c +++ b/drivers/firmware/edd.c @@ -748,14 +748,12 @@ edd_init(void) int rc=0; struct edd_device *edev; + if (!edd_num_devices()) + return -ENODEV; + printk(KERN_INFO "BIOS EDD facility v%s %s, %d devices found\n", EDD_VERSION, EDD_DATE, edd_num_devices()); - if (!edd_num_devices()) { - printk(KERN_INFO "EDD information not available.\n"); - return -ENODEV; - } - edd_kset = kset_create_and_add("edd", NULL, firmware_kobj); if (!edd_kset) return -ENOMEM; -- 2.13.6