diff options
author | Muhammad Falak R Wani <falakreyaz@gmail.com> | 2015-10-28 09:04:55 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-28 20:09:48 -0400 |
commit | 7de9728fee04453b79281414aa4a0899826a3908 (patch) | |
tree | b880955b60c3558234a9194b346cc800736644c0 | |
parent | 853a46638e3cc574b6889c97ee9554afbf743efb (diff) |
staging: rdma: ipath: Remove unneeded vairable.
Remove unneeded variable ret, directly return 0.
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rdma/ipath/ipath_file_ops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rdma/ipath/ipath_file_ops.c b/drivers/staging/rdma/ipath/ipath_file_ops.c index c796a51faa9c..5d9b9dbd8fc4 100644 --- a/drivers/staging/rdma/ipath/ipath_file_ops.c +++ b/drivers/staging/rdma/ipath/ipath_file_ops.c | |||
@@ -2046,7 +2046,6 @@ static void unlock_expected_tids(struct ipath_portdata *pd) | |||
2046 | 2046 | ||
2047 | static int ipath_close(struct inode *in, struct file *fp) | 2047 | static int ipath_close(struct inode *in, struct file *fp) |
2048 | { | 2048 | { |
2049 | int ret = 0; | ||
2050 | struct ipath_filedata *fd; | 2049 | struct ipath_filedata *fd; |
2051 | struct ipath_portdata *pd; | 2050 | struct ipath_portdata *pd; |
2052 | struct ipath_devdata *dd; | 2051 | struct ipath_devdata *dd; |
@@ -2158,7 +2157,7 @@ static int ipath_close(struct inode *in, struct file *fp) | |||
2158 | 2157 | ||
2159 | bail: | 2158 | bail: |
2160 | kfree(fd); | 2159 | kfree(fd); |
2161 | return ret; | 2160 | return 0; |
2162 | } | 2161 | } |
2163 | 2162 | ||
2164 | static int ipath_port_info(struct ipath_portdata *pd, u16 subport, | 2163 | static int ipath_port_info(struct ipath_portdata *pd, u16 subport, |