Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp12509813rwb; Sat, 26 Nov 2022 10:08:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf6sK3wxSpqDAe250G/vLj+tmOfINMtH/AMsiNESdY+iUUuAJ1diHlx+NBvmVfaUVhgVOgF7 X-Received: by 2002:a63:e44b:0:b0:476:f69c:2304 with SMTP id i11-20020a63e44b000000b00476f69c2304mr40816630pgk.77.1669486084780; Sat, 26 Nov 2022 10:08:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669486084; cv=none; d=google.com; s=arc-20160816; b=TXSoVgJ8RVlMqcoS3xP3Y1H9ibjNHLu/6s5nCCq2djarCny5JP0Z+qjIqRT0qoCu63 yp+6DhdMmgOq8/Hd96Y+IqKoDVPQn5kWyExEcreqefacaz2mXbZ3lxRjEGQxdoXQcsX+ 31pmHSiJDP5gNu07ST3UD3nQVWAmIGXvJXTqRKoyvhdbptBQZEeQ/EeI6xIKNY8V2ria qHFpiudzxXQiawJ19qnTYa0Uv5S5SHhKutJO7CXaPdLCRN5hBc399OQ0lC8I4NapFhfx KB7kjQgnkX0DoaTXYDaDF2Tbk98hv3x1pdsSeLwAVpu3seCxVsHMLBVV4CndxVW4eIPv zLuQ== 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:dkim-signature; bh=oc2TrEmr5KqotgSvg9398nOl+D8T+97lMY4B5EaEzvg=; b=xEEwWKaFFyMiAuRP8rd5RWF48iHjeOu2RB0PBfNed/aFUjFrxcfMxIoMp6ReUUbCYX 4WZWwdKNJaOWyw443546vmuhNEZ5BbYbH1EDoBiGCJ1KhtDu++N6mu7ByaLcuMIFnajs TT6cGI3tUAOwfMXUglK9P9iliDDx7aEzf2GuHgz8m/eeDJKyWbUA0f3rMU7Qy68fcnZi HdRaq7k+5p35a7mg/Mtr59yeB3WYHfLWKPGtF921Ryr5Tpze2brlf78ROzKu+jgTqUyQ /cfZDHEeMKSmotUY+SnPFYZQUzfGE+LB/kzDAo4CawBvh5K5L0u1xS0HVq5jFgriG8Da 7Fdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=RsUsqCrS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jf7-20020a170903268700b0018956083680si5762248plb.275.2022.11.26.10.07.53; Sat, 26 Nov 2022 10:08:04 -0800 (PST) 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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=RsUsqCrS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229618AbiKZRZt (ORCPT + 85 others); Sat, 26 Nov 2022 12:25:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbiKZRZs (ORCPT ); Sat, 26 Nov 2022 12:25:48 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82CC11CB32; Sat, 26 Nov 2022 09:25:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=oc2TrEmr5KqotgSvg9398nOl+D8T+97lMY4B5EaEzvg=; b=RsUsqCrSLnBVxNF9DQ50ZHA+TD uyJHRNxVAfcSDagZmeWTjuRD2W89a2yGOzAipRYzO8zJWN9QO1nr+6qik3SPp1ehavIBrd8WpTu5p P2e4qwAHk/YWthWNz063iq0BfeC1Fwhz2o5G0iTLUXK+Ajq7/NR9Fdc6Jvtxsqwl8VsI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oyyvL-003WXJ-L6; Sat, 26 Nov 2022 18:25:07 +0100 Date: Sat, 26 Nov 2022 18:25:07 +0100 From: Andrew Lunn To: Zheng Yongjun Cc: eajames@linux.ibm.com, mchehab@kernel.org, linux-media@vger.kernel.org, openbmc@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, joel@jms.id.au, andrew@aj.id.au Subject: Re: [PATCH v2] media: aspeed: Fix return value check in aspeed_video_debugfs_create() Message-ID: References: <20221126022813.57372-1-zhengyongjun3@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221126022813.57372-1-zhengyongjun3@huawei.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 Sat, Nov 26, 2022 at 02:28:13AM +0000, Zheng Yongjun wrote: > In case of error, the function debugfs_create_file() returns ERR_PTR() > and never returns NULL. The NULL test in the return value check > should be replaced with IS_ERR(). > > Fixes: 52fed10ad756 ("media: aspeed: add debugfs") > Signed-off-by: Zheng Yongjun Please see: https://patchwork.kernel.org/project/linux-wireless/patch/20200429101526.GA2094124@kroah.com/ and there are other examples. Just delete all the checks. Andrew