mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 00:08:50 +00:00
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>
This commit is contained in:
parent
112b6b791d
commit
4c2e9e2996
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user