usb: phy: twl4030-usb: Silence checkpatch warnings
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 3 Feb 2014 08:25:03 +0000 (13:55 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Sat, 1 Mar 2014 18:56:26 +0000 (00:26 +0530)
Silences the following warnings:
WARNING: sizeof *twl should be sizeof(*twl)
WARNING: sizeof *otg should be sizeof(*otg)

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-twl4030-usb.c

index c3ace1db8136eedef379691bc6fa532b4ff5d67c..6c7cec7d0a1d0d857848973e5828b62956854aaf 100644 (file)
@@ -661,7 +661,7 @@ static int twl4030_usb_probe(struct platform_device *pdev)
        struct phy_provider     *phy_provider;
        struct phy_init_data    *init_data = NULL;
 
-       twl = devm_kzalloc(&pdev->dev, sizeof *twl, GFP_KERNEL);
+       twl = devm_kzalloc(&pdev->dev, sizeof(*twl), GFP_KERNEL);
        if (!twl)
                return -ENOMEM;
 
@@ -676,7 +676,7 @@ static int twl4030_usb_probe(struct platform_device *pdev)
                return -EINVAL;
        }
 
-       otg = devm_kzalloc(&pdev->dev, sizeof *otg, GFP_KERNEL);
+       otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL);
        if (!otg)
                return -ENOMEM;