From: Muhammad Falak R Wani Date: Wed, 28 Oct 2015 13:04:55 +0000 (+0530) Subject: staging: rdma: ipath: Remove unneeded vairable. X-Git-Tag: KARO-TX6UL-2015-11-03~34^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7de9728fee04453b79281414aa4a0899826a3908;p=karo-tx-linux.git staging: rdma: ipath: Remove unneeded vairable. Remove unneeded variable ret, directly return 0. Signed-off-by: Muhammad Falak R Wani Signed-off-by: Greg Kroah-Hartman --- 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,