diff mbox series

memstick: mspro_block: remove unneeded semicolon

Message ID 20201031134818.2135446-1-trix@redhat.com
State New
Headers show
Series memstick: mspro_block: remove unneeded semicolon | expand

Commit Message

Tom Rix Oct. 31, 2020, 1:48 p.m. UTC
From: Tom Rix <trix@redhat.com>

A semicolon is not needed after a switch statement.

Signed-off-by: Tom Rix <trix@redhat.com>
---
 drivers/memstick/core/mspro_block.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

kajoljain Nov. 2, 2020, 6:51 a.m. UTC | #1
On 10/31/20 7:18 PM, trix@redhat.com wrote:
> From: Tom Rix <trix@redhat.com>

> 

> A semicolon is not needed after a switch statement.


Hi Tom,
   I was checking this patch. Not sure if it will come under as fix patch. Since this is not fixing
any logical issue do we still need to add fix tag?

Thanks,
Kajol Jain
> 

> Signed-off-by: Tom Rix <trix@redhat.com>

> ---

>  drivers/memstick/core/mspro_block.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/drivers/memstick/core/mspro_block.c b/drivers/memstick/core/mspro_block.c

> index cd6b8d4f2335..afb892e7ffc6 100644

> --- a/drivers/memstick/core/mspro_block.c

> +++ b/drivers/memstick/core/mspro_block.c

> @@ -276,7 +276,7 @@ static const char *mspro_block_attr_name(unsigned char tag)

>  		return "attr_devinfo";

>  	default:

>  		return NULL;

> -	};

> +	}

>  }

>  

>  typedef ssize_t (*sysfs_show_t)(struct device *dev,

>
Tom Rix Nov. 2, 2020, 1:42 p.m. UTC | #2
On 11/1/20 10:51 PM, kajoljain wrote:
>

> On 10/31/20 7:18 PM, trix@redhat.com wrote:

>> From: Tom Rix <trix@redhat.com>

>>

>> A semicolon is not needed after a switch statement.

> Hi Tom,

>    I was checking this patch. Not sure if it will come under as fix patch. Since this is not fixing

> any logical issue do we still need to add fix tag?


My rule of thumb is a fix means the kernel needs to be recompiled.

This isn't a fix.

Tom

>

> Thanks,

> Kajol Jain

>> Signed-off-by: Tom Rix <trix@redhat.com>

>> ---

>>  drivers/memstick/core/mspro_block.c | 2 +-

>>  1 file changed, 1 insertion(+), 1 deletion(-)

>>

>> diff --git a/drivers/memstick/core/mspro_block.c b/drivers/memstick/core/mspro_block.c

>> index cd6b8d4f2335..afb892e7ffc6 100644

>> --- a/drivers/memstick/core/mspro_block.c

>> +++ b/drivers/memstick/core/mspro_block.c

>> @@ -276,7 +276,7 @@ static const char *mspro_block_attr_name(unsigned char tag)

>>  		return "attr_devinfo";

>>  	default:

>>  		return NULL;

>> -	};

>> +	}

>>  }

>>  

>>  typedef ssize_t (*sysfs_show_t)(struct device *dev,

>>
kajoljain Nov. 2, 2020, 4:06 p.m. UTC | #3
On 11/2/20 7:12 PM, Tom Rix wrote:
> 

> On 11/1/20 10:51 PM, kajoljain wrote:

>>

>> On 10/31/20 7:18 PM, trix@redhat.com wrote:

>>> From: Tom Rix <trix@redhat.com>

>>>

>>> A semicolon is not needed after a switch statement.

>> Hi Tom,

>>    I was checking this patch. Not sure if it will come under as fix patch. Since this is not fixing

>> any logical issue do we still need to add fix tag?

> 

> My rule of thumb is a fix means the kernel needs to be recompiled.


Yes make sense. Thanks for confirming.

Thanks,
Kajol Jain

> 

> This isn't a fix.

> 

> Tom

> 

>>

>> Thanks,

>> Kajol Jain

>>> Signed-off-by: Tom Rix <trix@redhat.com>

>>> ---

>>>  drivers/memstick/core/mspro_block.c | 2 +-

>>>  1 file changed, 1 insertion(+), 1 deletion(-)

>>>

>>> diff --git a/drivers/memstick/core/mspro_block.c b/drivers/memstick/core/mspro_block.c

>>> index cd6b8d4f2335..afb892e7ffc6 100644

>>> --- a/drivers/memstick/core/mspro_block.c

>>> +++ b/drivers/memstick/core/mspro_block.c

>>> @@ -276,7 +276,7 @@ static const char *mspro_block_attr_name(unsigned char tag)

>>>  		return "attr_devinfo";

>>>  	default:

>>>  		return NULL;

>>> -	};

>>> +	}

>>>  }

>>>  

>>>  typedef ssize_t (*sysfs_show_t)(struct device *dev,

>>>

>
Ulf Hansson Nov. 5, 2020, 12:58 p.m. UTC | #4
On Sat, 31 Oct 2020 at 14:48, <trix@redhat.com> wrote:
>
> From: Tom Rix <trix@redhat.com>
>
> A semicolon is not needed after a switch statement.
>
> Signed-off-by: Tom Rix <trix@redhat.com>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/memstick/core/mspro_block.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/memstick/core/mspro_block.c b/drivers/memstick/core/mspro_block.c
> index cd6b8d4f2335..afb892e7ffc6 100644
> --- a/drivers/memstick/core/mspro_block.c
> +++ b/drivers/memstick/core/mspro_block.c
> @@ -276,7 +276,7 @@ static const char *mspro_block_attr_name(unsigned char tag)
>                 return "attr_devinfo";
>         default:
>                 return NULL;
> -       };
> +       }
>  }
>
>  typedef ssize_t (*sysfs_show_t)(struct device *dev,
> --
> 2.18.1
>
diff mbox series

Patch

diff --git a/drivers/memstick/core/mspro_block.c b/drivers/memstick/core/mspro_block.c
index cd6b8d4f2335..afb892e7ffc6 100644
--- a/drivers/memstick/core/mspro_block.c
+++ b/drivers/memstick/core/mspro_block.c
@@ -276,7 +276,7 @@  static const char *mspro_block_attr_name(unsigned char tag)
 		return "attr_devinfo";
 	default:
 		return NULL;
-	};
+	}
 }
 
 typedef ssize_t (*sysfs_show_t)(struct device *dev,