Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8196689ybi; Tue, 23 Jul 2019 04:30:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzejvNxU8Ao12eIFToZMStVPRI0cTGDztfC5EPX4FCD2L9hTODSFdYhkJEcfQROVTP5H1Nh X-Received: by 2002:a62:15c3:: with SMTP id 186mr5515280pfv.141.1563881445871; Tue, 23 Jul 2019 04:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563881445; cv=none; d=google.com; s=arc-20160816; b=R3C4u9yEmjo4QPK5aFqf0KbW/QPbXOmsgxgigYJh1+8uEMCtr6CXdWW9Oq8zoRjxtR yngGX1IQtLxRjWdTX/yLnBruFP6u9wlN1QFlZYqsqcHO/IGSN/H1llydNET8FBKnEpz1 UtyjIGOJeUSuXslvV4DHbY7kNb1kwiAeathxbQQBm6LOszTJM+elQbL85sDLKJWw+LMp zYNmAOp8bToj/+kEduCdvBO/ui+tBTJnJLKfHX+6hunsV7aRTijYY9PRs9z0SncSSrRh 2HcJrYo1J8Mi45L7116ideRZkDOsh+0KuIWZ38BrWHQPUP61IuLxY258NEx0oG6L7HDU QNlA== 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 :references:in-reply-to:from:subject:cc:to:message-id:date; bh=9ZU0hCPKG8raXKwBQ/ILBp4rW5Vn2QFxqbXXRu7bmNo=; b=X/FDLmL0c8hxkiLdQFreDF6MxDgQVvAhBuHoOpi76vcsvD54rjsVEidJrNrkjcB2kP axaIKpDSROnvRQQ5TO+oQEQx3EaeGBHnJ55OzYN7WkVc5Zp9BhEeEdCD7qIbNJtewrO/ i4ZJFn+gOCfzjvLfdwEjAexasU7m5+y1MeEwX6eSluTrn6nwlpOp6D+DEFiFR2MsBsGn 5TGh/jQgKIQ/QWtIrcYlc5n0FdzUYEVVvtPxKQvEok9j5N6EcU0oaZq8IZP3I0MJBqOY MsjzrGptQTlZWlHE6UMXjSCMYICDXwoVl0IYwxig0f0BWhWVmPQmk0QGfQFYWwkS7KMy 6Lrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 73si14186667pfu.148.2019.07.23.04.30.29; Tue, 23 Jul 2019 04:30:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387707AbfGWBWh (ORCPT + 99 others); Mon, 22 Jul 2019 21:22:37 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:52534 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727088AbfGWBWh (ORCPT ); Mon, 22 Jul 2019 21:22:37 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 473B015305A1D; Mon, 22 Jul 2019 18:22:36 -0700 (PDT) Date: Mon, 22 Jul 2019 18:22:35 -0700 (PDT) Message-Id: <20190722.182235.195933962601112626.davem@davemloft.net> To: hslester96@gmail.com Cc: woojung.huh@microchip.com, UNGLinuxDriver@microchip.com, steve.glendinning@shawell.net, linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: usb: Merge cpu_to_le32s + memcpy to put_unaligned_le32 From: David Miller In-Reply-To: <20190722074133.17777-1-hslester96@gmail.com> References: <20190722074133.17777-1-hslester96@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 22 Jul 2019 18:22:36 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chuhong Yuan Date: Mon, 22 Jul 2019 15:41:34 +0800 > Merge the combo uses of cpu_to_le32s and memcpy. > Use put_unaligned_le32 instead. > This simplifies the code. > > Signed-off-by: Chuhong Yuan Isn't the skb->data aligned to 4 bytes in these situations? If so, we should use the aligned variants. Thank you.