From: Amitoj Kaur Chawla Date: Thu, 15 Oct 2015 08:22:08 +0000 (+0530) Subject: staging: rdma: ipath: ipath_init_chip: Remove useless initialisation X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=939cb02e6efd4d2d9f3129c6e6c31f68869ab7b3;p=linux-beck.git staging: rdma: ipath: ipath_init_chip: Remove useless initialisation Remove intialisation of a variable that is immediately reassigned. The semantic patch used to find this is: // @@ type T; identifier x; constant C; expression e; @@ T x - = C ; x = e; // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rdma/ipath/ipath_init_chip.c b/drivers/staging/rdma/ipath/ipath_init_chip.c index cec1ebbb86d2..4aea99c7e6f8 100644 --- a/drivers/staging/rdma/ipath/ipath_init_chip.c +++ b/drivers/staging/rdma/ipath/ipath_init_chip.c @@ -210,7 +210,7 @@ static int bringup_link(struct ipath_devdata *dd) static struct ipath_portdata *create_portdata0(struct ipath_devdata *dd) { - struct ipath_portdata *pd = NULL; + struct ipath_portdata *pd; pd = kzalloc(sizeof(*pd), GFP_KERNEL); if (pd) {