summaryrefslogtreecommitdiff
path: root/drivers/staging/rdma/ipath/ipath_init_chip.c
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2015-10-15 08:22:08 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-17 06:01:02 (GMT)
commit939cb02e6efd4d2d9f3129c6e6c31f68869ab7b3 (patch)
tree3e3c698a53b14f09104ce40ec80b2675043c2ee5 /drivers/staging/rdma/ipath/ipath_init_chip.c
parent16709962c119a75d140da9dc226eeb9035e2c353 (diff)
downloadlinux-939cb02e6efd4d2d9f3129c6e6c31f68869ab7b3.tar.xz
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: // <smpl> @@ type T; identifier x; constant C; expression e; @@ T x - = C ; x = e; // </smpl> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rdma/ipath/ipath_init_chip.c')
-rw-r--r--drivers/staging/rdma/ipath/ipath_init_chip.c2
1 files changed, 1 insertions, 1 deletions
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) {