mwifiex: fix powerpc64-linux- compilation warnings
authorBing Zhao <bzhao@marvell.com>
Tue, 7 Aug 2012 23:08:08 +0000 (16:08 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Aug 2012 19:26:59 +0000 (15:26 -0400)
commit8dd4372e2a462081b92b38af18accb427fa2d554
treeaa6339f353458d0a26e467cf43e2a53ebd45fd75
parent450e9038ee65e3246b2a942669fc79001466f9be
mwifiex: fix powerpc64-linux- compilation warnings

These warnings can be detected by using powerpc64-linux toolchain
(gcc-4.6.3-nolibc).

  CC [M]  drivers/net/wireless/mwifiex/sta_event.o
drivers/net/wireless/mwifiex/sta_event.c: In function 'mwifiex_process_sta_event':
drivers/net/wireless/mwifiex/sta_event.c:388:4: warning: comparison of distinct pointer types lacks a cast [enabled by default]
  CC [M]  drivers/net/wireless/mwifiex/uap_event.o
drivers/net/wireless/mwifiex/uap_event.c: In function 'mwifiex_process_uap_event':
drivers/net/wireless/mwifiex/uap_event.c:258:11: warning: comparison of distinct pointer types lacks a cast [enabled by default]

Use min_t() instead of min() to fix the warnings.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/sta_event.c
drivers/net/wireless/mwifiex/uap_event.c