From patchwork Fri Mar 12 13:49:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 12134649 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3BC6C433E0 for ; Fri, 12 Mar 2021 13:49:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 987F664F71 for ; Fri, 12 Mar 2021 13:49:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229487AbhCLNtF (ORCPT ); Fri, 12 Mar 2021 08:49:05 -0500 Received: from mga06.intel.com ([134.134.136.31]:55009 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231496AbhCLNs4 (ORCPT ); Fri, 12 Mar 2021 08:48:56 -0500 IronPort-SDR: rH11lrFQv4WxOr7qNKzqzBGG31f4evJIuhmO3slpcD4EXjfObR+NqcCPo7u5mYQQXxUN3rpop/ hhXMoVoUUWOQ== X-IronPort-AV: E=McAfee;i="6000,8403,9921"; a="250197967" X-IronPort-AV: E=Sophos;i="5.81,243,1610438400"; d="scan'208";a="250197967" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2021 05:48:56 -0800 IronPort-SDR: dgyXnK8hy0kotiwv4nNM5fp2++5Jj2k26Lp5YVDGg/OT8ZAjjWEhH4PQY9CCwOPK+ORUsuNMWQ 2TTf/b9zyiFQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,243,1610438400"; d="scan'208";a="431949942" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga004.fm.intel.com with ESMTP; 12 Mar 2021 05:48:54 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 3D4582AF; Fri, 12 Mar 2021 15:49:05 +0200 (EET) From: Andy Shevchenko To: Jonathan Cameron , Jonathan Bakker , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Linus Walleij , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Andy Shevchenko Subject: [PATCH v1 1/1] iio: light: gp2ap002: Drop unneeded explicit casting Date: Fri, 12 Mar 2021 15:49:03 +0200 Message-Id: <20210312134903.4296-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The unnecessary explicit casting is being used. Drop it for good. Signed-off-by: Andy Shevchenko --- drivers/iio/light/gp2ap002.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/iio/light/gp2ap002.c b/drivers/iio/light/gp2ap002.c index 7ba7aa59437c..d048ae257c51 100644 --- a/drivers/iio/light/gp2ap002.c +++ b/drivers/iio/light/gp2ap002.c @@ -465,8 +465,7 @@ static int gp2ap002_probe(struct i2c_client *client, regmap = devm_regmap_init(dev, &gp2ap002_regmap_bus, dev, &config); if (IS_ERR(regmap)) { - dev_err(dev, "Failed to register i2c regmap %d\n", - (int)PTR_ERR(regmap)); + dev_err(dev, "Failed to register i2c regmap %ld\n", PTR_ERR(regmap)); return PTR_ERR(regmap); } gp2ap002->map = regmap;