Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757287AbaFANIZ (ORCPT ); Sun, 1 Jun 2014 09:08:25 -0400 Received: from mailrelay008.isp.belgacom.be ([195.238.6.174]:65047 "EHLO mailrelay008.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757187AbaFANIY (ORCPT ); Sun, 1 Jun 2014 09:08:24 -0400 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlsQAAcli1NXQzKE/2dsb2JhbABYgwerUQQBAQEBAQEGmBuBBxd0glMvI4EaN4hGAdVtF4VViH0dhCoEmgCLG4gSgzo7 From: Fabian Frederick To: linux-kernel@vger.kernel.org Cc: Fabian Frederick , Grant Likely , Rob Herring Subject: [PATCH 1/1] drivers/misc/carma/carma-fpga.c: use PTR_ERR_OR_ZERO Date: Sun, 1 Jun 2014 15:07:03 +0200 Message-Id: <1401628023-18888-1-git-send-email-fabf@skynet.be> X-Mailer: git-send-email 1.8.4.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org replace IS_ERR/PTR_ERR Cc: Grant Likely Cc: Rob Herring Signed-off-by: Fabian Frederick --- This is untested. drivers/misc/carma/carma-fpga.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/misc/carma/carma-fpga.c b/drivers/misc/carma/carma-fpga.c index 14d90ea..55e913b 100644 --- a/drivers/misc/carma/carma-fpga.c +++ b/drivers/misc/carma/carma-fpga.c @@ -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) -- 1.8.4.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/