power: avs: smartreflex: Remove superfluous cast in debugfs_create_file() call
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 21 Oct 2019 14:51:48 +0000 (16:51 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Nov 2019 10:23:51 +0000 (11:23 +0100)
There is no need to cast a typed pointer to a void pointer when calling
a function that accepts the latter.  Remove it, as the cast prevents
further compiler checks.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/power/avs/smartreflex.c

index 4684e7df833a81e9ac6f325719a6b9c4a326db72..5376f3d22f31eade4cac1e796bca82d080eeaf5c 100644 (file)
@@ -905,7 +905,7 @@ static int omap_sr_probe(struct platform_device *pdev)
        sr_info->dbg_dir = debugfs_create_dir(sr_info->name, sr_dbg_dir);
 
        debugfs_create_file("autocomp", S_IRUGO | S_IWUSR, sr_info->dbg_dir,
-                           (void *)sr_info, &pm_sr_fops);
+                           sr_info, &pm_sr_fops);
        debugfs_create_x32("errweight", S_IRUGO, sr_info->dbg_dir,
                           &sr_info->err_weight);
        debugfs_create_x32("errmaxlimit", S_IRUGO, sr_info->dbg_dir,