Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp4052297rdg; Wed, 18 Oct 2023 13:32:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IErvpJ6RxdaCyZfAPPW7yt0X/Y7AVoINC3X+cO9YoGdbSKM7TGq5/lQWqhD+Pk/jHO8421G X-Received: by 2002:a17:903:234f:b0:1c6:7ba:3a9a with SMTP id c15-20020a170903234f00b001c607ba3a9amr530472plh.14.1697661130292; Wed, 18 Oct 2023 13:32:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697661130; cv=none; d=google.com; s=arc-20160816; b=IsxZE+N8/XDCoCjNX0abdrpovWZxwDO4orGqtylqOUX17S5Vu3MTaKTI4/MJxIWvX2 ODtVmUNyULry1ZQXXb63sJEGGvUzYEwpCE6PyNqejhtyhPRYKmT3+dPkWYdpCGFwuFml Z4XApCMleFoEI+5IuSnRcjT+RM/KpKM2DczoYTWf3icv1oK5/TmyS512w8BZZI4YnvzC 2rnICu9vLVmS4jMp2kX4WVMhyA/bATY1+F4SSmuNkVonRNn8LTnUYcbxyWx93YD8eqQl FXaQB6Utu9m6wOC71Ak3Ev+Li2ER+o2l51huAuPrxrbtRk9z/jHgGOK9nl997Mb5BZPJ eg9g== 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=jw0dueOKPts1zNt6Qc1NnkirTK/dlfGvwtiYFiQfEUg=; fh=73Q7A8iXNRaSNjFjRBFCA7iJqXMhbXTEBWwh83Jj+fc=; b=g5GjsQXUPJtkr/HDaiAYKrRZKoZYOfQBf1yC7onU/IpjhJBXKxC6TTboD34Ci75mw/ g5M85/TafWqcb5q0Rs9qEN48EzSFH/z8CYwY5WUtS3IsJv/7GNpIWjceBKoDbWYVdkK2 JpU+Fn57FGQ4b0vEBox9+X+j+Io/+xQncUkpnfTTRLJ8u/OcNGJ937oWFP1M7vl5sJJk /cFgzQPU9wL2xbZWUREjGqStQHKMgGX9gxTCcraSw5JknrlH+NED6ZUOcwJZoY/oy1Nz t2zwM8bkTpMdIRwm4nCSMeWsU5C9P6EerM+wv3yHcRivytK3Z8b+oQvW5WqVZImnNCWD mAkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="gdlENQ/N"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id y18-20020a17090322d200b001c9daca280esi681123plg.235.2023.10.18.13.32.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 13:32:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="gdlENQ/N"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 2599E806A851; Wed, 18 Oct 2023 13:31:55 -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 S232008AbjJRU36 (ORCPT + 99 others); Wed, 18 Oct 2023 16:29:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231854AbjJRU3h (ORCPT ); Wed, 18 Oct 2023 16:29:37 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F64B19B; Wed, 18 Oct 2023 13:29:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697660951; x=1729196951; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PZ8f3OZuezOZo142PHMaLRSZJL/PRKIZGCjiSFaWGRc=; b=gdlENQ/Nos8jCYrBcT1Yd+/i4iDotNS1XJiYbIExemGlNKACPEMT/6Rf +euzMMLTfRa7EVhqDfMLpl+o6W3deoxSw3nxvdcUcx0mb28kR4I0v9FSc 0yLg0pMSCaCMG+BvIH0cbSogzEolDGGSp+CfvyrJUSpzFXjCFJZB11G2F T6sx0/ylcJT8hLagNYHDri1h8fBoqJLq0ijqNwbuPFYhgXoL9bkS5lJRk OP05eOHtEV3hAPn5EI4z4Zvwnjtq7HG7/8LzMjbWc9+ottozraQpSRsVl KDIUnmeFViTv4Z0z6moqsX2Lf80nBH4S2gAiTcj+G0Xk8wVDkcvEwttfQ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10867"; a="389984432" X-IronPort-AV: E=Sophos;i="6.03,235,1694761200"; d="scan'208";a="389984432" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 13:28:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10867"; a="1003937708" X-IronPort-AV: E=Sophos;i="6.03,235,1694761200"; d="scan'208";a="1003937708" Received: from irvmail002.ir.intel.com ([10.43.11.120]) by fmsmga006.fm.intel.com with ESMTP; 18 Oct 2023 13:28:15 -0700 Received: from pkitszel-desk.intel.com (unknown [10.255.194.180]) by irvmail002.ir.intel.com (Postfix) with ESMTP id 3880A33BF5; Wed, 18 Oct 2023 21:28:09 +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 , Simon Horman 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, Benjamin Poirier , Przemek Kitszel , Jiri Pirko Subject: [PATCH net-next v3 09/11] qed: devlink health: use retained error fmsg API Date: Wed, 18 Oct 2023 22:26:45 +0200 Message-Id: <20231018202647.44769-10-przemyslaw.kitszel@intel.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20231018202647.44769-1-przemyslaw.kitszel@intel.com> References: <20231018202647.44769-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]); Wed, 18 Oct 2023 13:31:55 -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. Reviewed-by: Jiri Pirko 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.38.1