mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 17:03:47 -04:00
staging: wfx: take advantage of le32_to_cpup()
le32_to_cpu(*x) can be advantageously converted in le32_to_cpup(x). Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20200512150414.267198-3-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9d9bb819d5
commit
1d572139f9
@@ -22,7 +22,7 @@ static int hif_generic_confirm(struct wfx_dev *wdev,
|
||||
const struct hif_msg *hif, const void *buf)
|
||||
{
|
||||
// All confirm messages start with status
|
||||
int status = le32_to_cpu(*((__le32 *) buf));
|
||||
int status = le32_to_cpup((__le32 *)buf);
|
||||
int cmd = hif->id;
|
||||
int len = hif->len - 4; // drop header
|
||||
|
||||
|
||||
Reference in New Issue
Block a user