Commit fc2f6774 authored by Fabian Frederick's avatar Fabian Frederick Committed by Greg Kroah-Hartman

drivers/misc/carma/carma-fpga.c: use PTR_ERR_OR_ZERO

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: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d238a0ec
...@@ -954,10 +954,7 @@ static int data_debugfs_init(struct fpga_device *priv) ...@@ -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, priv->dbg_entry = debugfs_create_file(drv_name, S_IRUGO, NULL, priv,
&data_debug_fops); &data_debug_fops);
if (IS_ERR(priv->dbg_entry)) return PTR_ERR_OR_ZERO(priv->dbg_entry);
return PTR_ERR(priv->dbg_entry);
return 0;
} }
static void data_debugfs_exit(struct fpga_device *priv) static void data_debugfs_exit(struct fpga_device *priv)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment