Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp887903rdb; Fri, 20 Oct 2023 02:17:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHyq6waemxPQlOQlGltySL86Ld3L3Qy+eUMh078313ZorumTETAKAlIHTy1XDyYvh2+RitH X-Received: by 2002:a05:6a00:2347:b0:693:42d2:cde0 with SMTP id j7-20020a056a00234700b0069342d2cde0mr1178599pfj.22.1697793477394; Fri, 20 Oct 2023 02:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697793477; cv=none; d=google.com; s=arc-20160816; b=GmUwxw1r1jbJMssEUrxH9phyCC8g+loDFMvERnW3puqY1p6Gn4anyR5paDA7vKzNDQ ytFzfaIsAA1h6zPorAJhbxGh0x1CZzim4jj2XdTN6F2FaGzLunh14S4rpQY1oRuWaMqp /kbNgUmZaVrOZpSc5P1xIwhhC7sgx/yPmmKB6kiKntCdLSYWBTMFPD5zzKSlwonHuHm6 JfiJIx1MUxdogunepTI9tGg9YBrCIerIPqGGCkwJwfAHJWoc9M4T7rf+jEvmLoZchYaf G/LvfGkrLhxxvMH5Hlp/CVmFVpyiqn6NhXak/Y0P93d9lktxwR6lwrxRE6C6oanDSrL1 TNaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=zgfGa9EL28deAdw15DOAj0cugglPIY+emo1+1cUlEus=; fh=vk0eLQHq4yQC1F9+t/KH5nxJfs6De3HIHIMYrKH7M6c=; b=Zppb2zqKdKzoAXNrBCRCCmxQQY2sfAiFaeCPDWK4Xy+gDTXsV70ipwCpaZ7DrHpiG4 +j6z9XUW0Jge13GbFUFTxFK9evBCWgwSVDQK2YEoWxjepkYfy445xxDWg0vYC0OvSB/3 hEWwMQBoFPuusMkf7Eku1svLXxiKmtqHiSg++H1Db5kow09y8Q1rJSMpDQqZLtavO4oo rgDakEXFIF+uJ55bMt3+FgzuccfmOGYWmcbeJCdb+op/F4vpSdv4Cdx3sDt4XeD2ZTHw LqPqUdpDsalk33nfCmfkQUeHw7Wy7HBEomBMn9R9ROM2h+X9xCagKH4lly9IRJnT+RmO iesg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id f8-20020a056a00238800b006bd78b99aa5si1583161pfc.334.2023.10.20.02.17.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 02:17:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 4EE7583C2278; Fri, 20 Oct 2023 02:17:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376609AbjJTJRp (ORCPT + 99 others); Fri, 20 Oct 2023 05:17:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376523AbjJTJRn (ORCPT ); Fri, 20 Oct 2023 05:17:43 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 7F890AB; Fri, 20 Oct 2023 02:17:40 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id DB0366024D8BF; Fri, 20 Oct 2023 17:17:37 +0800 (CST) X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Su Hui To: mchehab@kernel.org Cc: Su Hui , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] media: ddbridge: fix an error code problem in ddb_probe Date: Fri, 20 Oct 2023 17:17:23 +0800 Message-Id: <20231020091722.207022-1-suhui@nfschina.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 20 Oct 2023 02:17:55 -0700 (PDT) Error code is assigned to 'stat', return 'stat' rather than '-1'. Signed-off-by: Su Hui --- drivers/media/pci/ddbridge/ddbridge-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/ddbridge/ddbridge-main.c b/drivers/media/pci/ddbridge/ddbridge-main.c index 91733ab9f58c..363badab7cf0 100644 --- a/drivers/media/pci/ddbridge/ddbridge-main.c +++ b/drivers/media/pci/ddbridge/ddbridge-main.c @@ -238,7 +238,7 @@ static int ddb_probe(struct pci_dev *pdev, ddb_unmap(dev); pci_set_drvdata(pdev, NULL); pci_disable_device(pdev); - return -1; + return stat; } /****************************************************************************/ -- 2.30.2