diff mbox

treewide: fix semicolon.cocci warnings

Message ID 20170107032642.GA130314@lkp-hsx03.lkp.intel.com
State Awaiting Upstream
Delegated to: Pablo Neira
Headers show

Commit Message

kbuild test robot Jan. 7, 2017, 3:26 a.m. UTC
net/netfilter/x_tables.c:716:59-60: Unneeded semicolon


 Remove unneeded semicolon.

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

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

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

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

Comments

Michal Hocko Jan. 7, 2017, 9:23 a.m. UTC | #1
On Sat 07-01-17 11:26:42, Wu Fengguang wrote:
> net/netfilter/x_tables.c:716:59-60: Unneeded semicolon
> 
> 
>  Remove unneeded semicolon.
> 
> Generated by: scripts/coccinelle/misc/semicolon.cocci
> 
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>

Thanks, I will fold this into the original patch.

> ---
> 
>  x_tables.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- a/net/netfilter/x_tables.c
> +++ b/net/netfilter/x_tables.c
> @@ -713,7 +713,7 @@ EXPORT_SYMBOL(xt_check_entry_offsets);
>  unsigned int *xt_alloc_entry_offsets(unsigned int size)
>  {
>  	if (size < (SIZE_MAX / sizeof(unsigned int)))
> -		return kvmalloc(size * sizeof(unsigned int), GFP_KERNEL);;
> +		return kvmalloc(size * sizeof(unsigned int), GFP_KERNEL);
>  
>  	return NULL;
>
diff mbox

Patch

--- a/net/netfilter/x_tables.c
+++ b/net/netfilter/x_tables.c
@@ -713,7 +713,7 @@  EXPORT_SYMBOL(xt_check_entry_offsets);
 unsigned int *xt_alloc_entry_offsets(unsigned int size)
 {
 	if (size < (SIZE_MAX / sizeof(unsigned int)))
-		return kvmalloc(size * sizeof(unsigned int), GFP_KERNEL);;
+		return kvmalloc(size * sizeof(unsigned int), GFP_KERNEL);
 
 	return NULL;