staging: most: hdm-usb: unify variable names
authorChristian Gromm <christian.gromm@microchip.com>
Fri, 9 Sep 2016 13:25:40 +0000 (15:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 07:47:15 +0000 (09:47 +0200)
This patch is needed to have the same variable name for the same quantity
in the functions show_value() and store_value().

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/hdm-usb/hdm_usb.c

index 9c9a438..073a2aa 100644 (file)
@@ -1073,7 +1073,7 @@ static int get_stat_reg_addr(const struct regs *regs, int size,
 static ssize_t show_value(struct most_dci_obj *dci_obj,
                          struct most_dci_attribute *attr, char *buf)
 {
-       u16 tmp_val;
+       u16 val;
        u16 reg_addr;
        int err;
 
@@ -1085,11 +1085,11 @@ static ssize_t show_value(struct most_dci_obj *dci_obj,
                 get_static_reg_addr(rw_regs, attr->attr.name, &reg_addr))
                return -EFAULT;
 
-       err = drci_rd_reg(dci_obj->usb_device, reg_addr, &tmp_val);
+       err = drci_rd_reg(dci_obj->usb_device, reg_addr, &val);
        if (err < 0)
                return err;
 
-       return snprintf(buf, PAGE_SIZE, "%04x\n", tmp_val);
+       return snprintf(buf, PAGE_SIZE, "%04x\n", val);
 }
 
 static ssize_t store_value(struct most_dci_obj *dci_obj,