Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1109531rwp; Thu, 13 Jul 2023 06:20:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlFIIob/rBdQFbCqCDnND2R0ZtkRrMUEDgFEMIjzLIueDQlWzL7XK1net0IGuC8VDInahTaY X-Received: by 2002:a05:6402:610:b0:51e:26a3:1ba3 with SMTP id n16-20020a056402061000b0051e26a31ba3mr1811859edv.19.1689254457995; Thu, 13 Jul 2023 06:20:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689254457; cv=none; d=google.com; s=arc-20160816; b=O1AksIpX71EIi0kh19cHRxXlU2PMSsoTw/KOYVwTWCcBLU4MukYPvxKQVzbdy1zaXo E6agnJpgbinHeGBdm+jXLqH/ZZZXzYxN5M9I10ceCBZfEqLfIwxm8xUhEk5GMK0j/CrL MrvuZCVLcgZOK7PSAUoveLPwRKD6PWSyJ0gkhN32RXYf7ceNdjgEeGu58WOd8Zy5K4YH /6B2h1Xte76YqZVcs7aqfed7GySFQlpREjrPFgGhallBgaoDR8KHD1IrAalVjTHSPsRK iqSnuue4hT9j+OYqkQCiyccYz94t3SfEyCZFjRaeX6R2W7RSr7HMOBMAMy2TCsM6W4OM KQug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=1reHCwDy1d22aSN6JQM13zmmOPCeqPd8Wt84EwJXwqw=; fh=fsTZdvE+XomrWGjgR6OxRkhDx4IK/MH1fkd2mqM9vd4=; b=qnxMkW4j0HhYFFLbnvcTFE17RMmHqXmhmH7wdS+ZV/QkG/1od80wNlb2mtsUjGp8do BlIbuI1LXiG47+i9lx8pxMIdTt6csx3HrW8TpZcNCNi7t91ZiydC6IQ1EdJUxff60MTf 2aWH3UTM074B6BFjM4Li/q3vdX384kEtPjCswELI0mE1MRcApNFNIHSQs9gH1vBKBmrY 5PE1V2h23+UK3So/kBzclISNtZO0vJBwWns09GugWb107xdb22tGcM4XSCdUD/oTv0RG ejiirhzkCOt14tH82BfXRJzTIyOKmcz6gQQTc0u0oxsyYPkLHiDMb0H7TnFvXSaeeGcZ lh/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be22-20020a0564021a3600b0051bebe13247si7181460edb.496.2023.07.13.06.20.33; Thu, 13 Jul 2023 06:20:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234937AbjGMNLk (ORCPT + 99 others); Thu, 13 Jul 2023 09:11:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235085AbjGMNL3 (ORCPT ); Thu, 13 Jul 2023 09:11:29 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EE60B2706; Thu, 13 Jul 2023 06:11:27 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 39A1E1576; Thu, 13 Jul 2023 06:12:10 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 48A7A3F73F; Thu, 13 Jul 2023 06:11:26 -0700 (PDT) Date: Thu, 13 Jul 2023 14:11:23 +0100 From: Sudeep Holla To: Yang Li Cc: stanley.chu@mediatek.com, jejb@linux.ibm.com, martin.petersen@oracle.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, linux-scsi@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Abaci Robot Subject: Re: [PATCH -next] scsi: ufs: ufs-mediatek: Remove surplus dev_err() Message-ID: <20230713131123.uo5ofltbhvktkevd@bogus> References: <20230712064832.44188-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230712064832.44188-1-yang.lee@linux.alibaba.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 12, 2023 at 02:48:32PM +0800, Yang Li wrote: > There is no need to call the dev_err() function directly to print a > custom message when handling an error from either the platform_get_irq() > or platform_get_irq_byname() functions as both are going to display an > appropriate error message in case of a failure. > > ./drivers/ufs/host/ufs-mediatek.c:864:3-10: line 864 is redundant because platform_get_irq() already prints an error > > Reported-by: Abaci Robot > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5846 Acked-by: Sudeep Holla -- Regards, Sudeep