diff options
author | Marek Belisko <marek.belisko@open-nandra.com> | 2010-12-09 10:13:50 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-09 19:35:14 -0500 |
commit | 92914cc8bb6d2d710d102051c9bb7566b0ac75a0 (patch) | |
tree | e2b6816c38e5b1a3d242e3b67668f0a3829d6769 | |
parent | 1c46282421c8b31b37323f7b007c4562ce17578c (diff) |
staging: ft1000: Fix coding style in ft1000NotifyProc.
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_proc.c | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_proc.c b/drivers/staging/ft1000/ft1000-usb/ft1000_proc.c index f197523d0604..c3fca23d551c 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_proc.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_proc.c | |||
@@ -166,30 +166,29 @@ ft1000ReadProc (char *page, char **start, off_t off, int count, int *eof, | |||
166 | } | 166 | } |
167 | 167 | ||
168 | static int | 168 | static int |
169 | ft1000NotifyProc (struct notifier_block *this, unsigned long event, void *ptr) | 169 | ft1000NotifyProc(struct notifier_block *this, unsigned long event, void *ptr) |
170 | { | 170 | { |
171 | struct net_device *dev = ptr; | 171 | struct net_device *dev = ptr; |
172 | struct ft1000_info *info; | 172 | struct ft1000_info *info; |
173 | struct proc_dir_entry *ft1000_proc_file; | 173 | struct proc_dir_entry *ft1000_proc_file; |
174 | 174 | ||
175 | info = netdev_priv(dev); | 175 | info = netdev_priv(dev); |
176 | 176 | ||
177 | switch (event) { | ||
178 | case NETDEV_CHANGENAME: | ||
179 | remove_proc_entry(info->netdevname, info->ft1000_proc_dir); | ||
180 | ft1000_proc_file = create_proc_read_entry(dev->name, 0644, | ||
181 | info->ft1000_proc_dir, | ||
182 | ft1000ReadProc, dev); | ||
183 | snprintf(info->netdevname, IFNAMSIZ, "%s", dev->name); | ||
184 | break; | ||
185 | } | ||
177 | 186 | ||
178 | switch (event) | 187 | return NOTIFY_DONE; |
179 | { | ||
180 | case NETDEV_CHANGENAME: | ||
181 | remove_proc_entry (info->netdevname, info->ft1000_proc_dir); | ||
182 | ft1000_proc_file = create_proc_read_entry (dev->name, 0644, | ||
183 | info->ft1000_proc_dir, | ||
184 | ft1000ReadProc, dev); | ||
185 | snprintf (info->netdevname, IFNAMSIZ, "%s", dev->name); | ||
186 | break; | ||
187 | } | ||
188 | return NOTIFY_DONE; | ||
189 | } | 188 | } |
190 | 189 | ||
191 | static struct notifier_block ft1000_netdev_notifier = { | 190 | static struct notifier_block ft1000_netdev_notifier = { |
192 | .notifier_call = ft1000NotifyProc | 191 | .notifier_call = ft1000NotifyProc, |
193 | }; | 192 | }; |
194 | 193 | ||
195 | 194 | ||