diff mbox

thermal: qcom: tsens-8960: fix semicolon.cocci warnings

Message ID alpine.DEB.2.02.1604060813080.2210@localhost6.localdomain6 (mailing list archive)
State Changes Requested
Delegated to: Eduardo Valentin
Headers show

Commit Message

Julia Lawall April 6, 2016, 6:14 a.m. UTC
Remove unneeded semicolon.

Generated by: scripts/coccinelle/misc/semicolon.cocci

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
---

 tsens-8960.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Eduardo Valentin April 20, 2016, 11 p.m. UTC | #1
On Wed, Apr 06, 2016 at 08:14:34AM +0200, Julia Lawall wrote:
> Remove unneeded semicolon.
> 
> Generated by: scripts/coccinelle/misc/semicolon.cocci
> 
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
> ---
> 
>  tsens-8960.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- a/drivers/thermal/qcom/tsens-8960.c
> +++ b/drivers/thermal/qcom/tsens-8960.c

To which tree this patch applies to?

> @@ -247,7 +247,7 @@ static inline int code_to_mdegC(u32 adc_
>  	u32 slope;
>  	int offset;
>  
> -	slope = thermal_zone_get_slope(s->tzd);;
> +	slope = thermal_zone_get_slope(s->tzd);
>  	offset = CAL_MDEGC - slope * s->offset;
>  
>  	return adc_code * slope + offset;
--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Julia Lawall April 21, 2016, 5:12 a.m. UTC | #2
On Wed, 20 Apr 2016, Eduardo Valentin wrote:

> On Wed, Apr 06, 2016 at 08:14:34AM +0200, Julia Lawall wrote:
> > Remove unneeded semicolon.
> > 
> > Generated by: scripts/coccinelle/misc/semicolon.cocci
> > 
> > Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> > Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
> > ---
> > 
> >  tsens-8960.c |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > --- a/drivers/thermal/qcom/tsens-8960.c
> > +++ b/drivers/thermal/qcom/tsens-8960.c
> 
> To which tree this patch applies to?

Sorry, I should have preserved that information, but I don't have it any 
more.

julia

> > @@ -247,7 +247,7 @@ static inline int code_to_mdegC(u32 adc_
> >  	u32 slope;
> >  	int offset;
> >  
> > -	slope = thermal_zone_get_slope(s->tzd);;
> > +	slope = thermal_zone_get_slope(s->tzd);
> >  	offset = CAL_MDEGC - slope * s->offset;
> >  
> >  	return adc_code * slope + offset;
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- a/drivers/thermal/qcom/tsens-8960.c
+++ b/drivers/thermal/qcom/tsens-8960.c
@@ -247,7 +247,7 @@  static inline int code_to_mdegC(u32 adc_
 	u32 slope;
 	int offset;
 
-	slope = thermal_zone_get_slope(s->tzd);;
+	slope = thermal_zone_get_slope(s->tzd);
 	offset = CAL_MDEGC - slope * s->offset;
 
 	return adc_code * slope + offset;