diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2015-10-15 13:52:08 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-16 23:01:02 -0700 |
commit | 939cb02e6efd4d2d9f3129c6e6c31f68869ab7b3 (patch) | |
tree | 3e3c698a53b14f09104ce40ec80b2675043c2ee5 /drivers/staging/rdma | |
parent | 16709962c119a75d140da9dc226eeb9035e2c353 (diff) | |
download | blackbird-op-linux-939cb02e6efd4d2d9f3129c6e6c31f68869ab7b3.tar.gz blackbird-op-linux-939cb02e6efd4d2d9f3129c6e6c31f68869ab7b3.zip |
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')
-rw-r--r-- | drivers/staging/rdma/ipath/ipath_init_chip.c | 2 |
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 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) { |