driverdev-devel.linuxdriverproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging: vt6656: remove unnecessary parenthesis
@ 2019-12-30 15:55 Amir Mahdi Ghorbanian
  2020-01-06 21:29 ` Quentin Deslandes
  0 siblings, 1 reply; 2+ messages in thread
From: Amir Mahdi Ghorbanian @ 2019-12-30 15:55 UTC (permalink / raw)
  To: forest@alittletooquiet.net>,
	quentin.deslandes, indigoomega021, devel, linux-kernel

Remove unnecessary parenthesis to abide by kernel
coding-style.

Signed-off-by: Amir Mahdi Ghorbanian <indigoomega021@gmail.com>
---
 drivers/staging/vt6656/baseband.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/vt6656/baseband.c b/drivers/staging/vt6656/baseband.c
index 8d19ae71e7cc..25fb19fadc57 100644
--- a/drivers/staging/vt6656/baseband.c
+++ b/drivers/staging/vt6656/baseband.c
@@ -381,8 +381,8 @@ int vnt_vt3184_init(struct vnt_private *priv)
 
 	dev_dbg(&priv->usb->dev, "RF Type %d\n", priv->rf_type);
 
-	if ((priv->rf_type == RF_AL2230) ||
-	    (priv->rf_type == RF_AL2230S)) {
+	if (priv->rf_type == RF_AL2230 ||
+	    priv->rf_type == RF_AL2230S) {
 		priv->bb_rx_conf = vnt_vt3184_al2230[10];
 		length = sizeof(vnt_vt3184_al2230);
 		addr = vnt_vt3184_al2230;
@@ -461,8 +461,8 @@ int vnt_vt3184_init(struct vnt_private *priv)
 	if (ret)
 		goto end;
 
-	if ((priv->rf_type == RF_VT3226) ||
-	    (priv->rf_type == RF_VT3342A0)) {
+	if (priv->rf_type == RF_VT3226 ||
+	    priv->rf_type == RF_VT3342A0) {
 		ret = vnt_control_out_u8(priv, MESSAGE_REQUEST_MACREG,
 					 MAC_REG_ITRTMSET, 0x23);
 		if (ret)
-- 
2.17.1

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] staging: vt6656: remove unnecessary parenthesis
  2019-12-30 15:55 [PATCH] staging: vt6656: remove unnecessary parenthesis Amir Mahdi Ghorbanian
@ 2020-01-06 21:29 ` Quentin Deslandes
  0 siblings, 0 replies; 2+ messages in thread
From: Quentin Deslandes @ 2020-01-06 21:29 UTC (permalink / raw)
  To: Amir Mahdi Ghorbanian; +Cc: devel, forest@alittletooquiet.net>, linux-kernel

On 12/30/19 10:55:20, Amir Mahdi Ghorbanian wrote:
> Remove unnecessary parenthesis to abide by kernel
> coding-style.
> 
> Signed-off-by: Amir Mahdi Ghorbanian <indigoomega021@gmail.com>

Reviewed-by: Quentin Deslandes <quentin.deslandes@itdev.co.uk>

> ---
>  drivers/staging/vt6656/baseband.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/staging/vt6656/baseband.c b/drivers/staging/vt6656/baseband.c
> index 8d19ae71e7cc..25fb19fadc57 100644
> --- a/drivers/staging/vt6656/baseband.c
> +++ b/drivers/staging/vt6656/baseband.c
> @@ -381,8 +381,8 @@ int vnt_vt3184_init(struct vnt_private *priv)
>  
>  	dev_dbg(&priv->usb->dev, "RF Type %d\n", priv->rf_type);
>  
> -	if ((priv->rf_type == RF_AL2230) ||
> -	    (priv->rf_type == RF_AL2230S)) {
> +	if (priv->rf_type == RF_AL2230 ||
> +	    priv->rf_type == RF_AL2230S) {
>  		priv->bb_rx_conf = vnt_vt3184_al2230[10];
>  		length = sizeof(vnt_vt3184_al2230);
>  		addr = vnt_vt3184_al2230;
> @@ -461,8 +461,8 @@ int vnt_vt3184_init(struct vnt_private *priv)
>  	if (ret)
>  		goto end;
>  
> -	if ((priv->rf_type == RF_VT3226) ||
> -	    (priv->rf_type == RF_VT3342A0)) {
> +	if (priv->rf_type == RF_VT3226 ||
> +	    priv->rf_type == RF_VT3342A0) {
>  		ret = vnt_control_out_u8(priv, MESSAGE_REQUEST_MACREG,
>  					 MAC_REG_ITRTMSET, 0x23);
>  		if (ret)
> -- 
> 2.17.1
> 
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-06 23:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-30 15:55 [PATCH] staging: vt6656: remove unnecessary parenthesis Amir Mahdi Ghorbanian
2020-01-06 21:29 ` Quentin Deslandes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).