]> git.karo-electronics.de Git - linux-beck.git/commitdiff
net: bna: use correct type specifier (2)
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Sun, 31 Jul 2016 09:01:20 +0000 (11:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Aug 2016 20:32:52 +0000 (13:32 -0700)
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>
drivers/net/ethernet/brocade/bna/bnad_debugfs.c

index cfcb00ca27e355404f9573cc66d60291ef36603d..05c1c1dd7751bd720fac026876c7fcf7392eca03 100644 (file)
@@ -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;