diff options
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | 2016-07-31 11:01:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-01 13:32:52 -0700 |
commit | 4c2e9e299626b602024352848baa9c7b7bfee15f (patch) | |
tree | 51470fae965cb6a7efaba4fb3ee3545aa1e5b9d5 /drivers/net/ethernet/brocade | |
parent | 112b6b791dd0506fd49815232d38cb29672d48f2 (diff) | |
download | linux-4c2e9e299626b602024352848baa9c7b7bfee15f.tar.bz2 |
net: bna: use correct type specifier (2)
add and val are read with
sscanf(kern_buf, "%x:%x", &addr, &val);
and used as arguments for bna_reg_offset_check and writel
so they have to be unsigned.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/brocade')
-rw-r--r-- | drivers/net/ethernet/brocade/bna/bnad_debugfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad_debugfs.c b/drivers/net/ethernet/brocade/bna/bnad_debugfs.c index cfcb00ca27e3..05c1c1dd7751 100644 --- a/drivers/net/ethernet/brocade/bna/bnad_debugfs.c +++ b/drivers/net/ethernet/brocade/bna/bnad_debugfs.c @@ -373,7 +373,8 @@ bnad_debugfs_write_regwr(struct file *file, const char __user *buf, struct bnad_debug_info *debug = file->private_data; struct bnad *bnad = (struct bnad *)debug->i_private; struct bfa_ioc *ioc = &bnad->bna.ioceth.ioc; - int addr, val, rc; + int rc; + u32 addr, val; void __iomem *reg_addr; unsigned long flags; void *kern_buf; |