summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/message.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-10-29 14:25:51 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-07 09:59:50 -0800
commitda2bbdcc3838ce75c30bda8c3f9a6e55ece47ee1 (patch)
tree70c61e2415d60a878627a6d47c831dbfb767fd71 /drivers/usb/core/message.c
parentaa459e6a2e8c9c5447b951f8f93e2ea76f65d104 (diff)
downloadlinux-da2bbdcc3838ce75c30bda8c3f9a6e55ece47ee1.tar.gz
linux-da2bbdcc3838ce75c30bda8c3f9a6e55ece47ee1.tar.bz2
linux-da2bbdcc3838ce75c30bda8c3f9a6e55ece47ee1.zip
USB: avoid needless address-taking of function parameters
There's no need to take the address of the function params or local variables when the direct value byteswapping routines are available. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/message.c')
-rw-r--r--drivers/usb/core/message.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c
index 6d1048faf08e..cc47d36798b1 100644
--- a/drivers/usb/core/message.c
+++ b/drivers/usb/core/message.c
@@ -139,9 +139,9 @@ int usb_control_msg(struct usb_device *dev, unsigned int pipe, __u8 request,
dr->bRequestType = requesttype;
dr->bRequest = request;
- dr->wValue = cpu_to_le16p(&value);
- dr->wIndex = cpu_to_le16p(&index);
- dr->wLength = cpu_to_le16p(&size);
+ dr->wValue = cpu_to_le16(value);
+ dr->wIndex = cpu_to_le16(index);
+ dr->wLength = cpu_to_le16(size);
/* dbg("usb_control_msg"); */