diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2015-10-15 08:24:35 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-17 06:01:02 (GMT) |
commit | 4690ba0d4f4b2699db6802ebcbd4e66358d67849 (patch) | |
tree | 1ecfe9ded32ac41a7a6e20319c3dfdbeedffcde9 /drivers/staging/rdma/hfi1 | |
parent | 8d53d80b12c9683d51b8649a74b6c09ca0c15f8a (diff) | |
download | linux-4690ba0d4f4b2699db6802ebcbd4e66358d67849.tar.xz |
staging: rdma: hfi1: sysfs: 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/hfi1')
-rw-r--r-- | drivers/staging/rdma/hfi1/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rdma/hfi1/sysfs.c b/drivers/staging/rdma/hfi1/sysfs.c index b78c728..1dd6727 100644 --- a/drivers/staging/rdma/hfi1/sysfs.c +++ b/drivers/staging/rdma/hfi1/sysfs.c @@ -555,7 +555,7 @@ static ssize_t show_tempsense(struct device *device, container_of(device, struct hfi1_ibdev, ibdev.dev); struct hfi1_devdata *dd = dd_from_dev(dev); struct hfi1_temp temp; - int ret = -ENXIO; + int ret; ret = hfi1_tempsense_rd(dd, &temp); if (!ret) { |