Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1884524pxk; Sun, 13 Sep 2020 20:59:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+gi0DhRJhWbafddG3xNpjbZv3juXQO7UFF1T70IwbGlyNo9Jus9XVLohknhyeGAuWJN+I X-Received: by 2002:a05:6402:12d1:: with SMTP id k17mr14874011edx.323.1600055946298; Sun, 13 Sep 2020 20:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600055946; cv=none; d=google.com; s=arc-20160816; b=eSwuan5UcLDKThNbQaUDEH4KOOMoIhA1obTCTdA1o9ZKMRQ9Hnyeu10S22zoBWcjaq VRmmz6gv4jPeNJl/gqMDJX8g02fst48PlrEu0Pc1BmF0tQ5NNBdqVjJGQMNfeLOQz9SK qAowM65TSCgzHWTE2Fe0c95SYRjaWckx3NZvZkeWsbvHi+o6BP9b1BFgQW1x5VLV68hr AHIZMoCWggdxnkAy+YZx3Gj9TcRvRHnVwhdmvZLhSQIZVzWvuzP7IOMt8I2RO1aDqBS+ WsC8kL2zp1d/vydAhxi2jqjKHJMRPq56rXXSzKM2zcaa7JysocgZ+FtWpNkTb90Afojl F0dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=1KHjGqzt0/Tk4+q88PwDLQHl7caNlXXqePSluXrBAPA=; b=ROjMFKORM0mfnuDRGNJTxBIFhr0+EeWr8FVuzRklCuB7fzrzGW7KhSpAZ/6BJj+MFo usdXs9oG5T57JBU+SEFKxBd684tX30lCmITVUD2Yuj2E62XaRt9dIEyrTkpXit4AHhla bHh/cUI08SnI+vID60ifKDo5zxlSefWc3mJ7anJ8gYMXDFlcH+nAyJB5ETTwj7LIqgv9 qKcD1/6nS6O4DC4d2dgIsPscK8pEuaCmmLHUYXjCxx2IB9oNRNwUZeKw3i4ciDqxZfNx zhDeMNwG48p7eGQe1qmCZxgx9rQbqPuHYEBRXnuEoiC9ZFBC/5l2tW4zWQTkdb0+zjE7 hCmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce16si672108edb.302.2020.09.13.20.58.44; Sun, 13 Sep 2020 20:59:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725991AbgINDzQ (ORCPT + 99 others); Sun, 13 Sep 2020 23:55:16 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12245 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725965AbgINDzO (ORCPT ); Sun, 13 Sep 2020 23:55:14 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 0F836860BB16A348464B; Mon, 14 Sep 2020 11:55:12 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Mon, 14 Sep 2020 11:55:05 +0800 From: Liu Shixin To: "David S . Miller" , Jakub Kicinski , Wolfgang Grandegger , Marc Kleine-Budde CC: , , , Liu Shixin Subject: [PATCH -next] can: peak_usb: convert to use le32_add_cpu() Date: Mon, 14 Sep 2020 12:17:44 +0800 Message-ID: <20200914041744.3701840-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert cpu_to_le32(le32_to_cpu(E1) + E2) to use le32_add_cpu(). Signed-off-by: Liu Shixin --- drivers/net/can/usb/peak_usb/pcan_usb_pro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/usb/peak_usb/pcan_usb_pro.c b/drivers/net/can/usb/peak_usb/pcan_usb_pro.c index 1689ab387612..d8ebf35dea1c 100644 --- a/drivers/net/can/usb/peak_usb/pcan_usb_pro.c +++ b/drivers/net/can/usb/peak_usb/pcan_usb_pro.c @@ -186,7 +186,7 @@ static int pcan_msg_add_rec(struct pcan_usb_pro_msg *pm, int id, ...) len = pc - pm->rec_ptr; if (len > 0) { - *pm->u.rec_cnt = cpu_to_le32(le32_to_cpu(*pm->u.rec_cnt) + 1); + le32_add_cpu(pm->u.rec_cnt, 1); *pm->rec_ptr = id; pm->rec_ptr = pc; -- 2.25.1