[PATCH] staging: dgnc: mgmt.c: removes unused variable

Lidza Louina lidza.louina at gmail.com
Tue Aug 20 04:19:38 UTC 2013


This patch removes the inode variable from the
dgnc_mgmt_ioctl function. It's never used in the
function.

Signed-off-by: Lidza Louina <lidza.louina at gmail.com>
---
 drivers/staging/dgnc/dgnc_mgmt.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/dgnc/dgnc_mgmt.c b/drivers/staging/dgnc/dgnc_mgmt.c
index bbd65db..7958977 100644
--- a/drivers/staging/dgnc/dgnc_mgmt.c
+++ b/drivers/staging/dgnc/dgnc_mgmt.c
@@ -128,7 +128,6 @@ int dgnc_mgmt_close(struct inode *inode, struct file *file)
 #ifdef HAVE_UNLOCKED_IOCTL
 long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 {
-	struct inode *inode = file->f_dentry->d_inode;
 #else        
 int dgnc_mgmt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg)
 {
-- 
1.8.1.2



More information about the devel mailing list