Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5481819rwb; Sun, 4 Dec 2022 22:50:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf6m6yY4CspJRFkqBn2ZwKEjmJNLEtLesb+IMJGCpKwo/uZFNPfOYg0qyT2UP0ZcR+wzLHxb X-Received: by 2002:a05:6402:104b:b0:461:7d1f:1a7b with SMTP id e11-20020a056402104b00b004617d1f1a7bmr53979034edu.400.1670223018772; Sun, 04 Dec 2022 22:50:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670223018; cv=none; d=google.com; s=arc-20160816; b=qhR//UdKREHBRde2Td0C5IpV6TEQH27C7EalbFlKVLnTLu1PwqEf+bI31LM55hWVlD OXgYMg7y4rb4z5Bw7RlymfgaP2m1ex1mYeuqw3N5a58cajASV6b3D9RbR9MCLcbcefIA 7g7evWLcIp23pPfFInd+8599Zf23wdOPeH5l3UkQsHLk2fA4fAKltt1PcsNkRgo5OyAb KZ4jurRdIY90oY/lQ8UhqbCukB1838+PMc8RZkrYWW0FB2LFOdFTbSGLSjLMkcKl6C3J aq9PZB1ePAWyV6y4wCHsIZL+Dzpg3DYWBmarunFdFSfuxtnGtwCbNRYVSqXWW9r/6cWX 2cvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=DnVx/+jUwwAVd1P0XlEL/PfM6hBfewokuKa5Ob4OXeo=; b=IdaSM7PY9zZtNON3vxtWuhif1owD99QuR8M0o1Wfo2bUYHJnitpv6xGMihTl24pgfm f1wSk+b4dc59/LcSfJhdZ80QhnaRQzTFLlajRCZoANbBORuE6msXkeDD85Jff/T4RCDY NHjs5ftkQes9CCAgL+KzjoaKmzk34nmNJKRTXaSgxJZbzJFWgyzTYw0t0MSaZt8Juu3J /LFXJjfPTD/zFgF2BlkKKWjSt9R+m+mHYyBAMtHiR1SqX24N/zB6C/JfGzJXIYWUKw06 Lv/9Cn7mwrYmaG50EBv8DronRqUjK1DkcQOenmUhYdeNU4Oi+6qSfLVW0oaMgDUYYtO8 m3pA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020a0564021e8d00b0046b3638938esi41128edf.524.2022.12.04.22.49.57; Sun, 04 Dec 2022 22:50:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231718AbiLEGYQ (ORCPT + 83 others); Mon, 5 Dec 2022 01:24:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231239AbiLEGYN (ORCPT ); Mon, 5 Dec 2022 01:24:13 -0500 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 890AA11456; Sun, 4 Dec 2022 22:24:12 -0800 (PST) Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4NQYRG6g33z8RTZJ; Mon, 5 Dec 2022 14:24:10 +0800 (CST) Received: from xaxapp01.zte.com.cn ([10.88.40.50]) by mse-fl2.zte.com.cn with SMTP id 2B56NxYw049730; Mon, 5 Dec 2022 14:23:59 +0800 (+08) (envelope-from zhang.songyi@zte.com.cn) Received: from mapi (xaxapp01[null]) by mapi (Zmail) with MAPI id mid31; Mon, 5 Dec 2022 14:24:01 +0800 (CST) Date: Mon, 5 Dec 2022 14:24:01 +0800 (CST) X-Zmail-TransId: 2af9638d8e811cbafd79 X-Mailer: Zmail v1.0 Message-ID: <202212051424013653827@zte.com.cn> Mime-Version: 1.0 From: To: Cc: , , , , , , , , , , , , Subject: =?UTF-8?B?W1BBVENIIG5ldC1uZXh0XSBuZXQvbWx4NTogcmVtb3ZlIHJlZHVuZGFudCByZXQgdmFyaWFibGU=?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl2.zte.com.cn 2B56NxYw049730 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.250.137.novalocal with ID 638D8E8A.001 by FangMail milter! X-FangMail-Envelope: 1670221450/4NQYRG6g33z8RTZJ/638D8E8A.001/10.5.228.133/[10.5.228.133]/mse-fl2.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 638D8E8A.001/4NQYRG6g33z8RTZJ X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY 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 From: zhang songyi Return value from mlx5dr_send_postsend_action() directly instead of taking this in another redundant variable. Signed-off-by: zhang songyi --- drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c index a4476cb4c3b3..fd2d31cdbcf9 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c @@ -724,7 +724,6 @@ int mlx5dr_send_postsend_action(struct mlx5dr_domain *dmn, struct mlx5dr_action *action) { struct postsend_info send_info = {}; - int ret; send_info.write.addr = (uintptr_t)action->rewrite->data; send_info.write.length = action->rewrite->num_of_actions * @@ -734,9 +733,7 @@ int mlx5dr_send_postsend_action(struct mlx5dr_domain *dmn, mlx5dr_icm_pool_get_chunk_mr_addr(action->rewrite->chunk); send_info.rkey = mlx5dr_icm_pool_get_chunk_rkey(action->rewrite->chunk); - ret = dr_postsend_icm_data(dmn, &send_info); - - return ret; + return dr_postsend_icm_data(dmn, &send_info); } static int dr_modify_qp_rst2init(struct mlx5_core_dev *mdev, -- 2.15.2