From patchwork Mon Mar 20 14:42:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Cox X-Patchwork-Id: 9634349 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 63FFD6020B for ; Mon, 20 Mar 2017 14:44:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 54EEB2003F for ; Mon, 20 Mar 2017 14:44:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46DCB27F17; Mon, 20 Mar 2017 14:44:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC39E2003F for ; Mon, 20 Mar 2017 14:44:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754036AbdCTOmw (ORCPT ); Mon, 20 Mar 2017 10:42:52 -0400 Received: from mga09.intel.com ([134.134.136.24]:44493 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753814AbdCTOmp (ORCPT ); Mon, 20 Mar 2017 10:42:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1490020964; x=1521556964; h=subject:from:to:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=UYCAIg8uc1LWbBsrTZdKEPMdBRi375C4kKVADS6Q3Xg=; b=vo8LfzgbvoN+uMQko3TVXctGa/vm6+fm2dhEcZ/rJDWa86vL0948zXrs 0fB5kp5WB5royC5sxco0CQZEOeHcwg==; Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Mar 2017 07:42:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,194,1486454400"; d="scan'208";a="62684331" Received: from acox1-desk1.ger.corp.intel.com ([10.252.22.109]) by orsmga002.jf.intel.com with ESMTP; 20 Mar 2017 07:42:42 -0700 Subject: [PATCH 23/24] atomisp: remove a sysfs error message that can be used to log spam From: Alan Cox To: greg@kroah.com, linux-media@vger.kernel.org Date: Mon, 20 Mar 2017 14:42:41 +0000 Message-ID: <149002095116.17109.15579549438168736336.stgit@acox1-desk1.ger.corp.intel.com> In-Reply-To: <149002068431.17109.1216139691005241038.stgit@acox1-desk1.ger.corp.intel.com> References: <149002068431.17109.1216139691005241038.stgit@acox1-desk1.ger.corp.intel.com> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Instead of logging this just report ERANGE as an error, which will give something close to the right user space report. The others of these were already removed by Dan Carpenter's patch. Signed-off-by: Alan Cox --- .../media/atomisp/pci/atomisp2/atomisp_drvfs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_drvfs.c b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_drvfs.c index 7f7c6d5..fcfe8d7 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_drvfs.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_drvfs.c @@ -107,9 +107,7 @@ static ssize_t iunit_dbglvl_store(struct device_driver *drv, const char *buf, if (kstrtouint(buf, 10, &iunit_debug.dbglvl) || iunit_debug.dbglvl < 1 || iunit_debug.dbglvl > 9) { - dev_err(atomisp_dev, "%s setting %d value invalid, should be [1,9]\n", - __func__, iunit_debug.dbglvl); - return -EINVAL; + return -ERANGE; } atomisp_css_debug_set_dtrace_level(iunit_debug.dbglvl);