Skip to content

Commit fc2f677

Browse files
Fabian Frederickgregkh
authored andcommitted
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: Fabian Frederick <fabf@skynet.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d238a0e commit fc2f677

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎drivers/misc/carma/carma-fpga.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -954,10 +954,7 @@ static int data_debugfs_init(struct fpga_device *priv)
954954
{
955955
priv->dbg_entry = debugfs_create_file(drv_name, S_IRUGO, NULL, priv,
956956
&data_debug_fops);
957-
if (IS_ERR(priv->dbg_entry))
958-
return PTR_ERR(priv->dbg_entry);
959-
960-
return 0;
957+
return PTR_ERR_OR_ZERO(priv->dbg_entry);
961958
}
962959

963960
static void data_debugfs_exit(struct fpga_device *priv)

0 commit comments

Comments
 (0)