Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3071526rdg; Tue, 17 Oct 2023 03:56:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFvmFnFmkDh67jF2s/hJNG0h1eU9rmyEohUOM5B3Yo21ig0/zlYn4lyo4dV3Lkt3yPKvSfe X-Received: by 2002:a25:ad92:0:b0:d9b:454c:10c7 with SMTP id z18-20020a25ad92000000b00d9b454c10c7mr1901149ybi.32.1697540181756; Tue, 17 Oct 2023 03:56:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697540181; cv=none; d=google.com; s=arc-20160816; b=X/BbQq4jsd2eedkIvlOpP5ALD9m3Ny1vsDFQpacGLNs/U1SFLMMsnQFS3s5qrCUOQa BPphLs+WDZt2Dk3fCUCG0OZc38nxlQxgMk7YXSJNrTTQTlHbNNalw+7Nl19d3k/mAKeQ fsVJXKvy7SeN2k1IyS8PViap9uQdb1M+hR124WlOZMiEwmrPPMTJfh2MOiQAki4DJirn zeBNHVSqTVYfNrIBmbjQI9Ylzswt2kDUAUL8nUF7HqK8PuXaYZQmv7lRk3s2YaIhEG9G wlYfXg4bEFNTX+mvzS+gCscKczYytek6WNO8wkp3Cmr5rNin75ZA5Jp2MqEY9qA/o9bP Lrpw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=369HuB2a+u/MIA/NsRH4rnlzL9bMDocDOgi/d1QE984=; fh=ra8hxhoqIUy+VJmNSvVkWWGIcW9PSd+mVEd/OcQHjSY=; b=M26VXTKIyF7UTXU8uQnvgkFWtxcaiwCNn0+ldutm3vcRamOH0MMcq7dyO6/VsRLaBs Tfwc7/0jw4Gvq8Bk+3bxxGWC8TrkSpcFC/8VI3mQ6uC+ELYSFlxB3tKChBW5nOZeAqhs drC0tjJ2Gka8hjxCyz48SDXEVNcxcHPk5AG7kpr8l2yCaN+TuAtt+y53HbZXWUhSlp9s Fq5oTs72KB6vh20GRbcY3jCt3DyIE2HCleTx8RvsFoSsg0uM1TXw8CNirgDz2Nzgp3mL P3fCpK/S+XiAECh8ddo8R4hpQmLKTuWmKj3KeWnO5vla3+Myl2q/j8a4Gt1eeyHEHpi+ rD1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d0BBFmqO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id d5-20020a056a0010c500b006be3cf601adsi1393634pfu.270.2023.10.17.03.56.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 03:56:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d0BBFmqO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 448028021239; Tue, 17 Oct 2023 03:56:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343900AbjJQKzJ (ORCPT + 99 others); Tue, 17 Oct 2023 06:55:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343828AbjJQKyn (ORCPT ); Tue, 17 Oct 2023 06:54:43 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7936410E; Tue, 17 Oct 2023 03:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697540080; x=1729076080; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3FHuzyM+tI/YYtEQt5RwYl7WHtkjbOPZEQMxcGD8fUk=; b=d0BBFmqOIElrxPgbUa28FVQuT8GRWiyp+8EjJOTCu1p0Xwpa8Yt0uhA4 ClxiH7bK5gLxVFMNMXZ4Az33vTPtJxMHpDCMOPA45hLHEIWc4iSehCanV WCvc9OjsH/Rer4HuLochrUDpMJ2q5SCtCRWRFYGik7BoJ3fxCN1GVMFCG 4+x3ApaK7T/7F2ZHfqCCP3vLRLijN526oUQGFbM1w80lzEpcxZKRfuee6 0764QIFADN14qdaX38jqSCLHKZIKWFWBrSbLUV+J7GsL0LxEvDU1lk9kW xR1vQC10UOqINQ9yz0NCH/U8rFrhtELxYGaOGUDfDmG0BasguudjZRV4L w==; X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="366012724" X-IronPort-AV: E=Sophos;i="6.03,231,1694761200"; d="scan'208";a="366012724" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2023 03:54:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="785445352" X-IronPort-AV: E=Sophos;i="6.03,231,1694761200"; d="scan'208";a="785445352" Received: from irvmail002.ir.intel.com ([10.43.11.120]) by orsmga008.jf.intel.com with ESMTP; 17 Oct 2023 03:54:33 -0700 Received: from pelor.igk.intel.com (pelor.igk.intel.com [10.123.220.13]) by irvmail002.ir.intel.com (Postfix) with ESMTP id E9706312C0; Tue, 17 Oct 2023 11:54:30 +0100 (IST) From: Przemek Kitszel To: Jiri Pirko , netdev@vger.kernel.org, "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shannon Nelson , Michael Chan , Cai Huoqing , George Cherian , Danielle Ratson , Moshe Shemesh , Saeed Mahameed , Ariel Elior , Manish Chopra , Igor Russkikh , Coiby Xu Cc: Brett Creeley , Sunil Goutham , Linu Cherian , Geetha sowjanya , Jerin Jacob , hariprasad , Subbaraya Sundeep , Ido Schimmel , Petr Machata , Eran Ben Elisha , Aya Levin , Leon Romanovsky , linux-kernel@vger.kernel.org, Przemek Kitszel Subject: [PATCH net-next v2 09/11] qed: devlink health: use retained error fmsg API Date: Tue, 17 Oct 2023 12:53:39 +0200 Message-Id: <20231017105341.415466-10-przemyslaw.kitszel@intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231017105341.415466-1-przemyslaw.kitszel@intel.com> References: <20231017105341.415466-1-przemyslaw.kitszel@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 fry.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 (fry.vger.email [0.0.0.0]); Tue, 17 Oct 2023 03:56:19 -0700 (PDT) Drop unneeded error checking. devlink_fmsg_*() family of functions is now retaining errors, so there is no need to check for them after each call. Signed-off-by: Przemek Kitszel --- add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-2 (-2) --- drivers/net/ethernet/qlogic/qed/qed_devlink.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_devlink.c b/drivers/net/ethernet/qlogic/qed/qed_devlink.c index be5cc8b79bd5..dad8e617c393 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_devlink.c +++ b/drivers/net/ethernet/qlogic/qed/qed_devlink.c @@ -66,12 +66,12 @@ qed_fw_fatal_reporter_dump(struct devlink_health_reporter *reporter, return err; } - err = devlink_fmsg_binary_pair_put(fmsg, "dump_data", - p_dbg_data_buf, dbg_data_buf_size); + devlink_fmsg_binary_pair_put(fmsg, "dump_data", p_dbg_data_buf, + dbg_data_buf_size); vfree(p_dbg_data_buf); - return err; + return 0; } static int -- 2.40.1