Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5392641rwb; Mon, 14 Nov 2022 04:08:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf6a5RmbaxhScK/O5vDbx+fea0NEHf2GV1gGsIDt6UKx6yzI+vwI4xjCSednPIfULxZaFQYb X-Received: by 2002:a05:6402:f29:b0:462:30e4:fcf5 with SMTP id i41-20020a0564020f2900b0046230e4fcf5mr10969986eda.115.1668427723927; Mon, 14 Nov 2022 04:08:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668427723; cv=none; d=google.com; s=arc-20160816; b=aEdK6HkwgGAORecdOEJcC/0CNNV0H9XApuw3T9VDyj9ZQC3o6GoRfWdSRgM8C2K1ew QbXBPmxn65gfYoqUhQV63ZFZhCTeGdQXmNphlpzuP8fnz1DCgwa9R5CNVwSTkvyinqcq ip58ixwTqwmlyAegbvzZiPmwhJO2Hf+5aWfFIvoHWolenFihHnijYiggmLXZLchyyxSc +2/CZmroDZtJ9Nza5Z7IActljNMXX8NXJdpNT7akJI8XN9LtPsXT8Aczr2O1TtZawdK6 GZ1cRWUrH1ApwOkLK7478xCMihNg63VKdNB45l9/fI4mv3z3OrRpQH7emnfQX+jmZUyD fPlw== 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=LO32lLwwdseC/mHDpijXcHWtLweQKSA5Js2mxSi/QgI=; b=CDh10AdpQAzEMhfoSFQ2/WWgNCn1RXRG+HzkQZJj9iJTEeL+1Y7DA8Qo9TX8ecnZtL 7akZG0Hx41dQYhqSVHFcqMk0zaCfGx/rFmnF9fzYhdrPPIfn3aZ4oAbJhDC95FikFrf1 XV6gcZIejNHyegqzS9kHZ+FQxa6dikT2oifpI4oV8Sa11sl6EDUEeQLItytazllvak1t uALCO+vHOcImCkJo/HgOEb8NF8B6LJTM+N93Ba43/lJ+lxPffh/1l2tZ4Df7FJ2a33/U fpMZOa8XHgi2uqxHcIdozrIpRia5mdJaYUAbLCa0yJ9id4ADLPIEIZVfBvrroGQwvFBu iIKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="UEU7/PRu"; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id by21-20020a170906a2d500b007a7424836d5si7593785ejb.234.2022.11.14.04.08.12; Mon, 14 Nov 2022 04:08:43 -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=@linuxfoundation.org header.s=korg header.b="UEU7/PRu"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236053AbiKNLeG (ORCPT + 88 others); Mon, 14 Nov 2022 06:34:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234295AbiKNLeE (ORCPT ); Mon, 14 Nov 2022 06:34:04 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1710CE09E for ; Mon, 14 Nov 2022 03:34:03 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C7387B80E04 for ; Mon, 14 Nov 2022 11:34:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7B84C433C1; Mon, 14 Nov 2022 11:33:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1668425640; bh=MunztYmjYzSwPB7BJisv1LFGgh+doIRNYlMHEkJPVTw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UEU7/PRuHPugtaXjvj9Yex5i8zVN24TMzd1lXWXEZpREuC54HnYAPpyAcp7rTGdmO IYWdnb3v6exS6yh1wHVHWROBbhFxspKd22x7hvRIR9VgJ4LcptSUjt/4bKaSY9GxSo yJhIxFWoNdIO3Ie7mcTPZ/NH1Gh8RR6OJgqbVHKg= Date: Mon, 14 Nov 2022 12:33:56 +0100 From: Greg KH To: cuigaosheng Cc: dinguyen@kernel.org, richard.gong@intel.com, atull@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] firmware: stratix10-svc: Fix IS_ERR() vs NULL check in stratix10_svc_drv_probe() Message-ID: References: <20221114025921.1194834-1-cuigaosheng1@huawei.com> <4cb8207d-e2c1-b459-e456-d8998f8180c8@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4cb8207d-e2c1-b459-e456-d8998f8180c8@huawei.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 Mon, Nov 14, 2022 at 07:11:16PM +0800, cuigaosheng wrote: > > How was this found and tested? > > Thanks for taking time to review this patch. > I found this through the cocci script, I made the patch based on the code logic, > but I have not tested it due to the lack of hardware devices. As per our documentation, you have to explain how stuff like this is found and tested. thanks, greg k-h