Skip to content

Commit

Permalink
uwb: event_size should be signed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roel Kluin authored and David Vrabel committed Jun 1, 2009
1 parent 3218911 commit 94d7217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/uwb/hwa-rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ int hwarc_filter_event_WUSB_0100(struct uwb_rc *rc, struct uwb_rceb **header,
int result = -ENOANO;
struct uwb_rceb *rceb = *header;
int event = le16_to_cpu(rceb->wEvent);
size_t event_size;
ssize_t event_size;
size_t core_size, offset;

if (rceb->bEventType != UWB_RC_CET_GENERAL)
Expand Down

0 comments on commit 94d7217

Please sign in to comment.