summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/resource.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-07-28 17:01:49 +0200
committerTony Luck <tony.luck@intel.com>2014-07-29 16:28:15 -0700
commit6b15075c2c3662dbe1ac41404c6a2013b24efa1d (patch)
tree361a148e23953d2bc770df879b4f1b4531558e84 /arch/x86/kernel/resource.c
parent882d6f384b1ea58bc04a16b855492f5d683bc97b (diff)
downloadblackbird-obmc-linux-6b15075c2c3662dbe1ac41404c6a2013b24efa1d.tar.gz
blackbird-obmc-linux-6b15075c2c3662dbe1ac41404c6a2013b24efa1d.zip
[IA64] sn: Do not needlessly convert between pointers and integers
The nasid_to_try variable is an array of integers, so plain integers can be used when assigning values to the elements rather than casting a NULL pointer to an integer, which results in the following warning from GCC: arch/ia64/sn/kernel/bte.c:117:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nasid_to_try[1] = (int)NULL; ^ arch/ia64/sn/kernel/bte.c:125:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nasid_to_try[1] = (int)NULL; ^ Replace (int)NULL with a simple 0 to silence these warnings. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/x86/kernel/resource.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud