Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5107655ybi; Tue, 30 Jul 2019 13:58:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6cXOXZjJaZxJrXM3JE10zMr3KeaLwc/gXR7SBydkuR99RZpYuijjlTHM8Xn+1zgAghNOm X-Received: by 2002:a63:fe15:: with SMTP id p21mr111905199pgh.149.1564520319441; Tue, 30 Jul 2019 13:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564520319; cv=none; d=google.com; s=arc-20160816; b=CA5uKnxAOj9HFqa95//xhamxa7SbXz/U2aJQvtPEkDD5vByjl4FoE9MTT3iXqIw8d9 ac5QLV4Bz4VoqYjoJnDpItaPUsE1XwoQAQBZwN5By/9j/oMnlpRIKo9rKiO1Wult+Mpu AcgSilo1/DkDNi/9Jb9ishF1udxWxeHXvHStE7k64pG2iTgOtoPAA7/nEjYrFSQ0HkcX ot3T8dfe2VbFX1KxIe5ehMLYCMtYJEecbyMigX/OvTN4LW91mYhPesdd3arO5JJq4R6n 69aghf0ePuhWIdvnqGnZvkVlF0ZtAfYFVhLHD3cfygTbHgP5HFt8r+HGTnBuaugp6mWF /yqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ejbky3Ait/2fuVRBv/Aea0ZW9E8YvQRjIE68KrxG858=; b=US9FMlh2ke2ZyMlOXcEBxKrK/2sp1Nfsr4j8u6hGSSI8VVS2dSbIKDgy9KZUSdTwQ/ ywdnjeqhuSuvXowWBznnEQ7XMTUr9lZW00LyN2XN1UUJWNczgahGcYz5gJPw3OBzNayb 5QaH9b1GXnZp9j7w2xoCRJtBTrcXHqHILE32JWsLpR7Jv7YO87U0IgVFPEQyt4j9+zqF fJti+/J1Pl2drZzM9/LaalUnbefrPXoe7cGldLMEaftqJspJTEJMQqHzwPJxemN2jeYq 7mzC2M7wf4+cWNHxTVzChSArf+IlF8SCpmofbOHaKIjr02nY12O/6b6YCF5Xjbs6lKTb boKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=g7NxQfqo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a190si32073423pfb.127.2019.07.30.13.58.23; Tue, 30 Jul 2019 13:58:39 -0700 (PDT) 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; dkim=pass header.i=@chromium.org header.s=google header.b=g7NxQfqo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729083AbfG3SRh (ORCPT + 99 others); Tue, 30 Jul 2019 14:17:37 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:41634 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388167AbfG3SQq (ORCPT ); Tue, 30 Jul 2019 14:16:46 -0400 Received: by mail-pg1-f194.google.com with SMTP id x15so20131573pgg.8 for ; Tue, 30 Jul 2019 11:16:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ejbky3Ait/2fuVRBv/Aea0ZW9E8YvQRjIE68KrxG858=; b=g7NxQfqoHmAHu6FjiviV+l42gg60rayxYXW9umctHkawL0+ZOaMmX4rSGjSIgYitw/ JwYphBkhREl0mc9HGhGRpP4mJRGKBlCHFsIf4zXpF7AwUnneoonMz0J6Fi+rLAp6N6PY M/6I/sE+dEfMD36MCDCUmiNTGgs+7tt2vwqqA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ejbky3Ait/2fuVRBv/Aea0ZW9E8YvQRjIE68KrxG858=; b=gKaupRK5VrSWxSOtWPG36iBENaaEEIL7m3UdfOp6kxH2rd8QQeD1fJt8AvK42hj0Zv tVnAEMgPJcjoZx9qI2Rge1Qt/iPKNjsEXOwOv4OGbVzcjuAPzWhHWvCMXN9Qi8/Ent3U KL0iAmwDm2HEsNpI3NJ38BpL1xH/N3VB1V0TbTxmilUpqDO8KSdu0GkMmv6hOAWPTVh5 47BsvauFrpG0n0KTr5ov0lTHHVLD2HUGwQmFpmUyiZrFvdZfmt1db8hpw2stTXKS1Noa HdBBiTiLgOUE5EDXD3IMq4o1vEorIzmRVAjqXxCOxFpKrHfWtOpRA6fYYrfqRnhVT/yA TdLQ== X-Gm-Message-State: APjAAAUC2/7bKuJsTMw9QM/bwYuEs6gQ8ivUSpycclkfSl59p0K264Ss r3R7VvjNwMP/gTKQdLs2FVCniKS5s6BmlA== X-Received: by 2002:a65:680b:: with SMTP id l11mr15407071pgt.35.1564510605774; Tue, 30 Jul 2019 11:16:45 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id g1sm106744083pgg.27.2019.07.30.11.16.45 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 30 Jul 2019 11:16:45 -0700 (PDT) From: Stephen Boyd To: linux-kernel@vger.kernel.org Cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH v6 56/57] scsi: Remove dev_err() usage after platform_get_irq() Date: Tue, 30 Jul 2019 11:15:56 -0700 Message-Id: <20190730181557.90391-57-swboyd@chromium.org> X-Mailer: git-send-email 2.22.0.709.g102302147b-goog In-Reply-To: <20190730181557.90391-1-swboyd@chromium.org> References: <20190730181557.90391-1-swboyd@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We don't need dev_err() messages when platform_get_irq() fails now that platform_get_irq() prints an error message itself when something goes wrong. Let's remove these prints with a simple semantic patch. // @@ expression ret; struct platform_device *E; @@ ret = ( platform_get_irq(E, ...) | platform_get_irq_byname(E, ...) ); if ( \( ret < 0 \| ret <= 0 \) ) { ( -if (ret != -EPROBE_DEFER) -{ ... -dev_err(...); -... } | ... -dev_err(...); ) ... } // While we're here, remove braces on if statements that only have one statement (manually). Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-scsi@vger.kernel.org Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- Please apply directly to subsystem trees drivers/scsi/ufs/ufshcd-pltfrm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c index d7d521b394c3..f84943553454 100644 --- a/drivers/scsi/ufs/ufshcd-pltfrm.c +++ b/drivers/scsi/ufs/ufshcd-pltfrm.c @@ -404,7 +404,6 @@ int ufshcd_pltfrm_init(struct platform_device *pdev, irq = platform_get_irq(pdev, 0); if (irq < 0) { - dev_err(dev, "IRQ resource not available\n"); err = -ENODEV; goto out; } -- Sent by a computer through tubes