Commit f7a34ff7 authored by Tim Sell's avatar Tim Sell Committed by Greg Kroah-Hartman

staging: unisys: visorbus: fix sloppy unsigned/signed int conversions

Several implicit unsigned --> signed int conversions were corrected.
No runtime effects were observed here, nevertheless implicit conversions
between integral types can lead to unexpected behavior.
Signed-off-by: default avatarTim Sell <Timothy.Sell@unisys.com>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8681a1d4
...@@ -762,7 +762,7 @@ write_vbus_bus_info(struct visorchannel *chan, ...@@ -762,7 +762,7 @@ write_vbus_bus_info(struct visorchannel *chan,
static void static void
write_vbus_dev_info(struct visorchannel *chan, write_vbus_dev_info(struct visorchannel *chan,
struct spar_vbus_headerinfo *hdr_info, struct spar_vbus_headerinfo *hdr_info,
struct ultra_vbus_deviceinfo *info, int devix) struct ultra_vbus_deviceinfo *info, unsigned int devix)
{ {
int off = int off =
(sizeof(struct channel_header) + hdr_info->dev_info_offset) + (sizeof(struct channel_header) + hdr_info->dev_info_offset) +
...@@ -787,8 +787,8 @@ fix_vbus_dev_info(struct visor_device *visordev) ...@@ -787,8 +787,8 @@ fix_vbus_dev_info(struct visor_device *visordev)
int i; int i;
struct visor_device *bdev; struct visor_device *bdev;
struct visor_driver *visordrv; struct visor_driver *visordrv;
int bus_no = visordev->chipset_bus_no; u32 bus_no = visordev->chipset_bus_no;
int dev_no = visordev->chipset_dev_no; u32 dev_no = visordev->chipset_dev_no;
struct ultra_vbus_deviceinfo dev_info; struct ultra_vbus_deviceinfo dev_info;
const char *chan_type_name = NULL; const char *chan_type_name = NULL;
struct spar_vbus_headerinfo *hdr_info; struct spar_vbus_headerinfo *hdr_info;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment