aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/txx9wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/txx9wdt.c')
-rw-r--r--drivers/watchdog/txx9wdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/watchdog/txx9wdt.c b/drivers/watchdog/txx9wdt.c
index b729cc447df3..8382f9a9534b 100644
--- a/drivers/watchdog/txx9wdt.c
+++ b/drivers/watchdog/txx9wdt.c
@@ -142,8 +142,6 @@ static long txx9wdt_ioctl(struct file *file, unsigned int cmd,
142 }; 142 };
143 143
144 switch (cmd) { 144 switch (cmd) {
145 default:
146 return -ENOTTY;
147 case WDIOC_GETSUPPORT: 145 case WDIOC_GETSUPPORT:
148 return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; 146 return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0;
149 case WDIOC_GETSTATUS: 147 case WDIOC_GETSTATUS:
@@ -163,6 +161,8 @@ static long txx9wdt_ioctl(struct file *file, unsigned int cmd,
163 /* Fall */ 161 /* Fall */
164 case WDIOC_GETTIMEOUT: 162 case WDIOC_GETTIMEOUT:
165 return put_user(timeout, p); 163 return put_user(timeout, p);
164 default:
165 return -ENOTTY;
166 } 166 }
167} 167}
168 168