aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorMuhammad Falak R Wani <falakreyaz@gmail.com>2015-10-28 18:34:55 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-29 09:09:48 +0900
commit7de9728fee04453b79281414aa4a0899826a3908 (patch)
treeb880955b60c3558234a9194b346cc800736644c0 /drivers/staging
parentstaging: rtl8188eu: pwrGrpCnt variable removed in store_pwrindex_offset function (diff)
downloadlinux-dev-7de9728fee04453b79281414aa4a0899826a3908.tar.xz
linux-dev-7de9728fee04453b79281414aa4a0899826a3908.zip
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/rdma/ipath/ipath_file_ops.c3
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)
static int ipath_close(struct inode *in, struct file *fp)
{
- int ret = 0;
struct ipath_filedata *fd;
struct ipath_portdata *pd;
struct ipath_devdata *dd;
@@ -2158,7 +2157,7 @@ static int ipath_close(struct inode *in, struct file *fp)
bail:
kfree(fd);
- return ret;
+ return 0;
}
static int ipath_port_info(struct ipath_portdata *pd, u16 subport,