Skip to contentSkip to conversation

usb: use get_unaligned_* helpers

PATCH Applied Harvey Harrison 2 participants 2 messages May 2, 2008 – May 8, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/8 usb: use get_unaligned_* helpers

---
 drivers/usb/serial/kl5kusb105.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/serial/kl5kusb105.c +1 -1
index f328948..79787ed 100644
@@ -236,7 +236,7 @@ static int klsi_105_get_line_state(struct usb_serial_port *port,
 	if (rc < 0)
 		err("Reading line status failed (error = %d)", rc);
 	else {
-		status = le16_to_cpu(get_unaligned((__le16 *)status_buf));
+		status = get_unaligned_le16(status_buf);
 
 		info("%s - read status %x %x", __func__,
 		     status_buf[0], status_buf[1]);
Signature · 1 line
1.5.5.1.350.gbbbf
#1 lore raw

patch usb-use-get_unaligned_-helpers-for-kl5kusb105-driver.patch added to gregkh-2.6 tree

This is a note to let you know that I've just added the patch titled

Subject: USB: use get_unaligned_* helpers for kl5kusb105 driver

to my gregkh-2.6 tree. Its filename is

usb-use-get_unaligned_-helpers-for-kl5kusb105-driver.patch

This tree can be found at
http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/

Quoted 1 line

From [email protected] Thu May 1 20:52:48 2008

From: Harvey Harrison <[email protected]>
Date: Thu, 01 May 2008 20:52:57 -0700
Subject: USB: use get_unaligned_* helpers for kl5kusb105 driver
To: Andrew Morton <[email protected]>
Cc: Greg KH <[email protected]>, LKML <[email protected]>
Message-ID: <1209700377.22362.20.camel@brick>

---
 drivers/usb/serial/kl5kusb105.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/serial/kl5kusb105.c +1 -1
@@ -236,7 +236,7 @@ static int klsi_105_get_line_state(struc
 	if (rc < 0)
 		err("Reading line status failed (error = %d)", rc);
 	else {
-		status = le16_to_cpu(get_unaligned((__le16 *)status_buf));
+		status = get_unaligned_le16(status_buf);
 
 		info("%s - read status %x %x", __func__,
 		     status_buf[0], status_buf[1]);

Patches currently in gregkh-2.6 which might be from [email protected] are

usb.next/usb-fix-integer-as-null-pointer-warnings-found-by-sparse.patch usb.next/usb-use-get_unaligned_-helpers-for-kl5kusb105-driver.patch