diff options
author | Christian Lamparter <[email protected]> | 2012-08-11 13:09:20 +0200 |
---|---|---|
committer | John W. Linville <[email protected]> | 2012-08-13 15:28:35 -0400 |
commit | 22c5649eef0fc37532e20c14d2656b28ca708a69 (patch) | |
tree | 6e9a5d247dcffff5e9286065de27c0169cb672b8 /lib/string_helpers.c | |
parent | df32381896f5f0c78a371df2e49ab7c776b1a5ba (diff) |
p54: fix powerpc gcc warnings
My commit "p54: parse output power table" introduced
the following compiler warnings for powerpc-allmodconfig
eeprom.c: In function 'p54_get_maxpower':
eeprom.c:291 warning: comparison of distinct pointer types lacks a cast
eeporm.c:292 warning: comparison of distinct pointer types lacks a cast
eeprom.c:293 warning: comparison of distinct pointer types lacks a cast
eeprom.c:294 warning: comparison of distinct pointer types lacks a cast
This patch fixes those by using max_t(u16
which forces a type cast.
Reported-by: Fengguang Wu <[email protected]>
Tested-by: Fengguang Wu <[email protected]>
Signed-off-by: Christian Lamparter <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions