From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751555AbdKIG1c (ORCPT ); Thu, 9 Nov 2017 01:27:32 -0500 Received: from mail-oi0-f68.google.com ([209.85.218.68]:46345 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750797AbdKIG13 (ORCPT ); Thu, 9 Nov 2017 01:27:29 -0500 X-Google-Smtp-Source: ABhQp+QBbZhnMN4JTCnpui8kwXybPXXg/bMET7UB3LYQ0VB+86VWKfId42il+sKD42rveetzca0PqgC22cgny8AQIKE= MIME-Version: 1.0 X-Originating-IP: [217.140.96.140] In-Reply-To: <20171107104310.xhdxl3q3bnh7uciw@mwanda> References: <1510047606-5589-1-git-send-email-gilad@benyossef.com> <1510047606-5589-7-git-send-email-gilad@benyossef.com> <20171107104310.xhdxl3q3bnh7uciw@mwanda> From: Gilad Ben-Yossef Date: Thu, 9 Nov 2017 08:27:28 +0200 Message-ID: Subject: Re: [PATCH 6/8] staging: ccree: simplify pm manager using local var To: Dan Carpenter Cc: Greg Kroah-Hartman , devel@driverdev.osuosl.org, Linux kernel mailing list , driverdev-devel@linuxdriverproject.org, Linux Crypto Mailing List , Ofir Drang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 7, 2017 at 12:43 PM, Dan Carpenter wrote: > On Tue, Nov 07, 2017 at 09:40:02AM +0000, Gilad Ben-Yossef wrote: >> --- a/drivers/staging/ccree/ssi_pm.c >> +++ b/drivers/staging/ccree/ssi_pm.c >> @@ -90,20 +90,24 @@ 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); > > No need to cast: > > struct ssi_drvdata *drvdata = dev_get_drvdata(dev); > The same unneeded cast appears at other places in the file, so I opted to add a patch addressing all these location rather then change this one. I hope it's OK. Gilad -- Gilad Ben-Yossef Chief Coffee Drinker "If you take a class in large-scale robotics, can you end up in a situation where the homework eats your dog?" -- Jean-Baptiste Queru