diff options
author | Ivo van Doorn <IvDoorn@gmail.com> | 2008-08-02 04:31:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-02 04:31:09 -0400 |
commit | 82f97b8d3cb3982ec97e081598c671fab2c321b0 (patch) | |
tree | a0909f3f4d12ae3e1436e78b9bfd620eeff9ce06 /drivers/net/wireless/rt2x00/rt2x00usb.c | |
parent | e9e80ea5f2129e135e3a6fa260314b1c6d99b19a (diff) |
rt2x00: Fix compile warning
rt2x00usb_vendor_request_large_buff is write-only, so it is
safe to make the argument a const.
Fixes compile warning:
drivers/net/wireless/rt2x00/rt73usb.c: In function 'rt73usb_load_firmware':
drivers/net/wireless/rt2x00/rt73usb.c:916: warning: passing argument 5 of 'rt2x00usb_vendor_request_large_buff' discards qualifiers from pointer target typ
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.c b/drivers/net/wireless/rt2x00/rt2x00usb.c index 933e6cc9359d..8d76bb2e0312 100644 --- a/drivers/net/wireless/rt2x00/rt2x00usb.c +++ b/drivers/net/wireless/rt2x00/rt2x00usb.c | |||
@@ -124,7 +124,7 @@ EXPORT_SYMBOL_GPL(rt2x00usb_vendor_request_buff); | |||
124 | 124 | ||
125 | int rt2x00usb_vendor_request_large_buff(struct rt2x00_dev *rt2x00dev, | 125 | int rt2x00usb_vendor_request_large_buff(struct rt2x00_dev *rt2x00dev, |
126 | const u8 request, const u8 requesttype, | 126 | const u8 request, const u8 requesttype, |
127 | const u16 offset, void *buffer, | 127 | const u16 offset, const void *buffer, |
128 | const u16 buffer_length, | 128 | const u16 buffer_length, |
129 | const int timeout) | 129 | const int timeout) |
130 | { | 130 | { |
@@ -134,7 +134,7 @@ int rt2x00usb_vendor_request_large_buff(struct rt2x00_dev *rt2x00dev, | |||
134 | 134 | ||
135 | mutex_lock(&rt2x00dev->usb_cache_mutex); | 135 | mutex_lock(&rt2x00dev->usb_cache_mutex); |
136 | 136 | ||
137 | tb = buffer; | 137 | tb = (char *)buffer; |
138 | off = offset; | 138 | off = offset; |
139 | len = buffer_length; | 139 | len = buffer_length; |
140 | while (len && !status) { | 140 | while (len && !status) { |