Преглед изворни кода

Staging: slicoss: changes memory allocation style in slicoss.c

This is a patch to slicoss.c that changes the memory allocation style as
identified by checkpatch.pl

Signed-off-by: Ben Marsh <bmarsh94@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Ben Marsh пре 9 година
родитељ
комит
5d7a3876ca
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      drivers/staging/slicoss/slicoss.c

+ 1 - 1
drivers/staging/slicoss/slicoss.c

@@ -1793,7 +1793,7 @@ static int slic_mcast_add_list(struct adapter *adapter, char *address)
 	}
 	}
 
 
 	/* Doesn't already exist.  Allocate a structure to hold it */
 	/* Doesn't already exist.  Allocate a structure to hold it */
-	mcaddr = kmalloc(sizeof(struct mcast_address), GFP_ATOMIC);
+	mcaddr = kmalloc(sizeof(*mcaddr), GFP_ATOMIC);
 	if (mcaddr == NULL)
 	if (mcaddr == NULL)
 		return 1;
 		return 1;