Skip to contentSkip to conversation

compat_ioctl: Remove unused local typedef

PATCH New Andi Kleen 1 participant 1 message Sep 9, 2012 VFS

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 compat_ioctl: Remove unused local typedef

From: Andi Kleen <[email protected]>

gcc 4.8 always warns

fs/compat_ioctl.c: In function 'serial_struct_ioctl':
fs/compat_ioctl.c:609:38: warning: typedef 'SS' locally defined but not used [-Wunused-local-typedefs]

         typedef struct serial_struct SS;

Indeed that typedef is unused, so just remove it.

---
 fs/compat_ioctl.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
fs/compat_ioctl.c +0 -1
index debdfe0..e6f11a3 100644
@@ -606,7 +606,6 @@ struct serial_struct32 {
 static int serial_struct_ioctl(unsigned fd, unsigned cmd,
 			struct serial_struct32 __user *ss32)
 {
-        typedef struct serial_struct SS;
         typedef struct serial_struct32 SS32;
         int err;
         struct serial_struct ss;
Signature · 1 line
1.7.7.6