linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Thomas Körper" <thomas.koerper@esd.eu>
To: linux-can@vger.kernel.org
Cc: "Thomas Körper" <thomas.koerper@esd.eu>
Subject: [PATCH 1/1] can: esd_usb2: Fix sparse warnings
Date: Mon, 16 Mar 2015 09:48:29 +0100	[thread overview]
Message-ID: <1426495709-10810-1-git-send-email-thomas.koerper@esd.eu> (raw)

The hnd field of the structs does not need to be __le32: the
device just returns the value without using it itself.

Signed-off-by: Thomas Körper <thomas.koerper@esd.eu>
---
 drivers/net/can/usb/esd_usb2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/can/usb/esd_usb2.c b/drivers/net/can/usb/esd_usb2.c
index bacca0b..e4dc936 100644
--- a/drivers/net/can/usb/esd_usb2.c
+++ b/drivers/net/can/usb/esd_usb2.c
@@ -139,7 +139,7 @@ struct tx_msg {
 	u8 cmd;
 	u8 net;
 	u8 dlc;
-	__le32 hnd;
+	u32 hnd;
 	__le32 id; /* upper 3 bits contain flags */
 	u8 data[8];
 };
@@ -149,7 +149,7 @@ struct tx_done_msg {
 	u8 cmd;
 	u8 net;
 	u8 status;
-	__le32 hnd;
+	u32 hnd;
 	__le32 ts;
 };
 
-- 
2.3.1


             reply	other threads:[~2015-03-16  9:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-16  8:48 Thomas Körper [this message]
2015-03-16 10:53 ` [PATCH 1/1] can: esd_usb2: Fix sparse warnings Marc Kleine-Budde
2015-03-16 13:24 ` Marc Kleine-Budde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1426495709-10810-1-git-send-email-thomas.koerper@esd.eu \
    --to=thomas.koerper@esd.eu \
    --cc=linux-can@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).