diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-05-12 16:47:21 -0400 |
---|---|---|
committer | David Vrabel <david.vrabel@csr.com> | 2009-06-01 06:59:15 -0400 |
commit | 94d72176f69954d7a20e95e97dc101a4b521ce57 (patch) | |
tree | 436a5bc89ea9857f3fbfd9c6c4009d880f50384d /drivers | |
parent | 3218911f839b6c85acbf872ad264ea69aa4d89ad (diff) |
uwb: event_size should be signed
event_size should be ssize_t to notice when hwarc_get_event_size() returns
-ENOSPC.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: David Vrabel <david.vrabel@csr.com>
Cc: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Vrabel <david.vrabel@csr.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/uwb/hwa-rc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/uwb/hwa-rc.c b/drivers/uwb/hwa-rc.c index 559f8784acf3..9052bcb4f528 100644 --- a/drivers/uwb/hwa-rc.c +++ b/drivers/uwb/hwa-rc.c | |||
@@ -501,7 +501,7 @@ int hwarc_filter_event_WUSB_0100(struct uwb_rc *rc, struct uwb_rceb **header, | |||
501 | int result = -ENOANO; | 501 | int result = -ENOANO; |
502 | struct uwb_rceb *rceb = *header; | 502 | struct uwb_rceb *rceb = *header; |
503 | int event = le16_to_cpu(rceb->wEvent); | 503 | int event = le16_to_cpu(rceb->wEvent); |
504 | size_t event_size; | 504 | ssize_t event_size; |
505 | size_t core_size, offset; | 505 | size_t core_size, offset; |
506 | 506 | ||
507 | if (rceb->bEventType != UWB_RC_CET_GENERAL) | 507 | if (rceb->bEventType != UWB_RC_CET_GENERAL) |