[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c79cfd22-0809-7a7b-2b43-7801a17605d0@lwfinger.net>
Date: Mon, 23 Aug 2021 09:19:41 -0500
From: Larry Finger <Larry.Finger@...inger.net>
To: David Laight <David.Laight@...LAB.COM>,
Aakash Hemadri <aakashhemadri123@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Phillip Potter <phil@...lpotter.co.uk>
Cc: "linux-staging@...ts.linux.dev" <linux-staging@...ts.linux.dev>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 2/5] staging: r8188eu: cast to restricted __be32
On 8/22/21 4:30 PM, David Laight wrote:
> From: Larry Finger
>> Sent: 20 August 2021 22:45
>> u32 cookie = be32_to_cpu(dhcph->cookie);
>
> Modulo anything that really means it should get_unaligned_be32().
True, but cookie is 32-bit aligned, thus the code is correct.
Larry
Powered by blists - more mailing lists