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-Tag: v4.4-rc1~125^2~541 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=939cb02e6efd4d2d9f3129c6e6c31f68869ab7b3;p=platform%2Fkernel%2Flinux-exynos.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 cec1ebb..4aea99c 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) {