From patchwork Thu Nov 9 09:16:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 118405 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp6341196qgn; Thu, 9 Nov 2017 01:11:41 -0800 (PST) X-Google-Smtp-Source: ABhQp+SSDDReY4g9kbFcyTeGclId/ypMsYNJkGAwUy49UOTDuTkSAfcaiAUoJTVNOOFShN17GgRD X-Received: by 10.101.86.196 with SMTP id w4mr3300207pgs.335.1510218701373; Thu, 09 Nov 2017 01:11:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510218701; cv=none; d=google.com; s=arc-20160816; b=d3ihGuMLDAHJkGOF/BbrqMlsmPYBP+p5L+QChC9zr5umCJ4D8GtFlQWMhHJtkH6JIv bi6M6KFiAtG2DV+hal9FdO+DOwg+j62/N5C64nGetNznsF89U8dQNJ8vDmrX/mN8kh49 we8Zf/5SgZyh3EjCwpGvOE+v2akCA2qIY1kC2FRdlYRE0Mz8TnbnX1hv5jeUXymH3QKx YGlWfT8sPf6qWOMaQdz+mpxX0ZfaaD2MmeYpmlxze0UclbNtMFDS+soY1gvkXG6WgMeq htp5wH5+x/+o5fQ06xSmerDm3OM7QY6l0p0o4TkmXFb1Z1leY8NqPIDBPY8J6djBYXni LasQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=AKB/idqUUNQSnpmMr6flJwtjxPrmSnlgoURDDkEtzlQ=; b=lpArKe2fTwcnUTpVSQmBNoKjh1rce1zVzdQr63Skkspe9d/fu650UkyMRi/g4CFojA LHruwV+7tO/bR6syACtUrstevClkb3zEeYrbo5URwjP1Atpad2UXaUu97maXBjX0K1vm JMizxLpUBtXR88NpOUvYCVp+uv6hCyeJHflSuZYr66DmlzdmHlQj+lq5OXFzfWS7Vgnq nBXw0DBiAcOuKGrMVkiKu/uZmn/0gKZGDevPnyCal/qlWnQvDPAAvL9M9bHDl8eTQ2Ba D/YiVJW475VUvBHr79GbAGqIQyB/T5Z+9OIQlQN66YI1iDmNKfXM/2IU83elVd/Wjjmx gyYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2si5984211plm.60.2017.11.09.01.11.41; Thu, 09 Nov 2017 01:11:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754016AbdKIJLi (ORCPT + 25 others); Thu, 9 Nov 2017 04:11:38 -0500 Received: from foss.arm.com ([217.140.101.70]:43648 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753997AbdKIJLd (ORCPT ); Thu, 9 Nov 2017 04:11:33 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 707421435; Thu, 9 Nov 2017 01:11:33 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.162]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BA5603F246; Thu, 9 Nov 2017 01:11:31 -0800 (PST) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 07/10] staging: ccree: remove unneeded cast Date: Thu, 9 Nov 2017 09:16:15 +0000 Message-Id: <1510218980-3549-8-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510218980-3549-1-git-send-email-gilad@benyossef.com> References: <1510218980-3549-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unneeded cast of the return value of dev_get_drvdata() to struct ssi_drvdata * for better readability. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_pm.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) -- 2.7.4 diff --git a/drivers/staging/ccree/ssi_pm.c b/drivers/staging/ccree/ssi_pm.c index d60143c..d3e9382 100644 --- a/drivers/staging/ccree/ssi_pm.c +++ b/drivers/staging/ccree/ssi_pm.c @@ -36,8 +36,7 @@ int cc_pm_suspend(struct device *dev) { - struct ssi_drvdata *drvdata = - (struct ssi_drvdata *)dev_get_drvdata(dev); + struct ssi_drvdata *drvdata = dev_get_drvdata(dev); int rc; dev_dbg(dev, "set HOST_POWER_DOWN_EN\n"); @@ -56,8 +55,7 @@ int cc_pm_suspend(struct device *dev) int cc_pm_resume(struct device *dev) { int rc; - struct ssi_drvdata *drvdata = - (struct ssi_drvdata *)dev_get_drvdata(dev); + struct ssi_drvdata *drvdata = dev_get_drvdata(dev); dev_dbg(dev, "unset HOST_POWER_DOWN_EN\n"); cc_iowrite(drvdata, CC_REG(HOST_POWER_DOWN_EN), POWER_DOWN_DISABLE); @@ -90,8 +88,7 @@ int cc_pm_resume(struct device *dev) int cc_pm_get(struct device *dev) { int rc = 0; - struct ssi_drvdata *drvdata = - (struct ssi_drvdata *)dev_get_drvdata(dev); + struct ssi_drvdata *drvdata = dev_get_drvdata(dev); if (cc_req_queue_suspended(drvdata)) rc = pm_runtime_get_sync(dev); @@ -104,8 +101,7 @@ int cc_pm_get(struct device *dev) int cc_pm_put_suspend(struct device *dev) { int rc = 0; - struct ssi_drvdata *drvdata = - (struct ssi_drvdata *)dev_get_drvdata(dev); + struct ssi_drvdata *drvdata = dev_get_drvdata(dev); if (!cc_req_queue_suspended(drvdata)) { pm_runtime_mark_last_busy(dev);