Skip to content

Commit

Permalink
ath6kl: fix compilation warning in ath6kl_htc_pipe_conn_service
Browse files Browse the repository at this point in the history
Fix the warning

drivers/net/wireless/ath/ath6kl/htc_pipe.c: In function
'ath6kl_htc_pipe_conn_service':
drivers/net/wireless/ath/ath6kl/htc_pipe.c:1293:26: warning: integer overflow
in expression [-Woverflow]

by giving a hint to compiler about unsigned nature of
HTC_CONN_FLGS_SET_RECV_ALLOC_MASK

Signed-off-by: Vladimir Murzin <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
  • Loading branch information
murzinv authored and kvalo committed Oct 1, 2013
1 parent 1a22243 commit a07b5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath6kl/htc.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
/* disable credit flow control on a specific service */
#define HTC_CONN_FLGS_DISABLE_CRED_FLOW_CTRL (1 << 3)
#define HTC_CONN_FLGS_SET_RECV_ALLOC_SHIFT 8
#define HTC_CONN_FLGS_SET_RECV_ALLOC_MASK 0xFF00
#define HTC_CONN_FLGS_SET_RECV_ALLOC_MASK 0xFF00U

/* connect response status codes */
#define HTC_SERVICE_SUCCESS 0
Expand Down

0 comments on commit a07b5b8

Please sign in to comment.