drivers/misc/carma/carma-fpga.c: use PTR_ERR_OR_ZERO
authorFabian Frederick <fabf@skynet.be>
Sun, 15 Jun 2014 06:22:42 +0000 (08:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 21:19:34 +0000 (14:19 -0700)
replace IS_ERR/PTR_ERR

Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/carma/carma-fpga.c

index 14d90ea..55e913b 100644 (file)
@@ -954,10 +954,7 @@ static int data_debugfs_init(struct fpga_device *priv)
 {
        priv->dbg_entry = debugfs_create_file(drv_name, S_IRUGO, NULL, priv,
                                              &data_debug_fops);
-       if (IS_ERR(priv->dbg_entry))
-               return PTR_ERR(priv->dbg_entry);
-
-       return 0;
+       return PTR_ERR_OR_ZERO(priv->dbg_entry);
 }
 
 static void data_debugfs_exit(struct fpga_device *priv)