diff options
author | Joe Perches <joe@perches.com> | 2012-02-19 22:52:38 -0500 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2012-02-21 12:04:01 -0500 |
commit | 475be4d85a274d0961593db41cf85689db1d583c (patch) | |
tree | b2b8931eb747794730522c3cf1898e46948527b9 /drivers/isdn/hysdn/hysdn_net.c | |
parent | 0b0a635f79f91f3755b6518627ea06dd0dbfd523 (diff) |
isdn: whitespace coding style cleanup
isdn source code uses a not-current coding style.
Update the coding style used on a per-line basis
so that git diff -w shows only elided blank lines
at EOF.
Done with emacs and some scripts and some typing.
Built x86 allyesconfig.
No detected change in objdump -d or size.
Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers/isdn/hysdn/hysdn_net.c')
-rw-r--r-- | drivers/isdn/hysdn/hysdn_net.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/isdn/hysdn/hysdn_net.c b/drivers/isdn/hysdn/hysdn_net.c index 11f2cce26005..a0efb4cefa1c 100644 --- a/drivers/isdn/hysdn/hysdn_net.c +++ b/drivers/isdn/hysdn/hysdn_net.c | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | #include "hysdn_defs.h" | 24 | #include "hysdn_defs.h" |
25 | 25 | ||
26 | unsigned int hynet_enable = 0xffffffff; | 26 | unsigned int hynet_enable = 0xffffffff; |
27 | module_param(hynet_enable, uint, 0); | 27 | module_param(hynet_enable, uint, 0); |
28 | 28 | ||
29 | #define MAX_SKB_BUFFERS 20 /* number of buffers for keeping TX-data */ | 29 | #define MAX_SKB_BUFFERS 20 /* number of buffers for keeping TX-data */ |
@@ -155,7 +155,7 @@ net_send_packet(struct sk_buff *skb, struct net_device *dev) | |||
155 | /* completion */ | 155 | /* completion */ |
156 | /***********************************************************************/ | 156 | /***********************************************************************/ |
157 | void | 157 | void |
158 | hysdn_tx_netack(hysdn_card * card) | 158 | hysdn_tx_netack(hysdn_card *card) |
159 | { | 159 | { |
160 | struct net_local *lp = card->netif; | 160 | struct net_local *lp = card->netif; |
161 | 161 | ||
@@ -181,7 +181,7 @@ hysdn_tx_netack(hysdn_card * card) | |||
181 | /* we got a packet from the network, go and queue it */ | 181 | /* we got a packet from the network, go and queue it */ |
182 | /*****************************************************/ | 182 | /*****************************************************/ |
183 | void | 183 | void |
184 | hysdn_rx_netpkt(hysdn_card * card, unsigned char *buf, unsigned short len) | 184 | hysdn_rx_netpkt(hysdn_card *card, unsigned char *buf, unsigned short len) |
185 | { | 185 | { |
186 | struct net_local *lp = card->netif; | 186 | struct net_local *lp = card->netif; |
187 | struct net_device *dev; | 187 | struct net_device *dev; |
@@ -215,7 +215,7 @@ hysdn_rx_netpkt(hysdn_card * card, unsigned char *buf, unsigned short len) | |||
215 | /* return the pointer to a network packet to be send */ | 215 | /* return the pointer to a network packet to be send */ |
216 | /*****************************************************/ | 216 | /*****************************************************/ |
217 | struct sk_buff * | 217 | struct sk_buff * |
218 | hysdn_tx_netget(hysdn_card * card) | 218 | hysdn_tx_netget(hysdn_card *card) |
219 | { | 219 | { |
220 | struct net_local *lp = card->netif; | 220 | struct net_local *lp = card->netif; |
221 | 221 | ||
@@ -229,11 +229,11 @@ hysdn_tx_netget(hysdn_card * card) | |||
229 | } /* hysdn_tx_netget */ | 229 | } /* hysdn_tx_netget */ |
230 | 230 | ||
231 | static const struct net_device_ops hysdn_netdev_ops = { | 231 | static const struct net_device_ops hysdn_netdev_ops = { |
232 | .ndo_open = net_open, | 232 | .ndo_open = net_open, |
233 | .ndo_stop = net_close, | 233 | .ndo_stop = net_close, |
234 | .ndo_start_xmit = net_send_packet, | 234 | .ndo_start_xmit = net_send_packet, |
235 | .ndo_change_mtu = eth_change_mtu, | 235 | .ndo_change_mtu = eth_change_mtu, |
236 | .ndo_set_mac_address = eth_mac_addr, | 236 | .ndo_set_mac_address = eth_mac_addr, |
237 | .ndo_validate_addr = eth_validate_addr, | 237 | .ndo_validate_addr = eth_validate_addr, |
238 | }; | 238 | }; |
239 | 239 | ||
@@ -244,13 +244,13 @@ static const struct net_device_ops hysdn_netdev_ops = { | |||
244 | /* 0 announces success, else a negative error code will be returned. */ | 244 | /* 0 announces success, else a negative error code will be returned. */ |
245 | /*****************************************************************************/ | 245 | /*****************************************************************************/ |
246 | int | 246 | int |
247 | hysdn_net_create(hysdn_card * card) | 247 | hysdn_net_create(hysdn_card *card) |
248 | { | 248 | { |
249 | struct net_device *dev; | 249 | struct net_device *dev; |
250 | int i; | 250 | int i; |
251 | struct net_local *lp; | 251 | struct net_local *lp; |
252 | 252 | ||
253 | if(!card) { | 253 | if (!card) { |
254 | printk(KERN_WARNING "No card-pt in hysdn_net_create!\n"); | 254 | printk(KERN_WARNING "No card-pt in hysdn_net_create!\n"); |
255 | return (-ENOMEM); | 255 | return (-ENOMEM); |
256 | } | 256 | } |
@@ -291,7 +291,7 @@ hysdn_net_create(hysdn_card * card) | |||
291 | /* value 0 announces success, else a negative error code will be returned. */ | 291 | /* value 0 announces success, else a negative error code will be returned. */ |
292 | /***************************************************************************/ | 292 | /***************************************************************************/ |
293 | int | 293 | int |
294 | hysdn_net_release(hysdn_card * card) | 294 | hysdn_net_release(hysdn_card *card) |
295 | { | 295 | { |
296 | struct net_device *dev = card->netif; | 296 | struct net_device *dev = card->netif; |
297 | 297 | ||
@@ -316,7 +316,7 @@ hysdn_net_release(hysdn_card * card) | |||
316 | /* if the interface is not existing, a "-" is returned. */ | 316 | /* if the interface is not existing, a "-" is returned. */ |
317 | /*****************************************************************************/ | 317 | /*****************************************************************************/ |
318 | char * | 318 | char * |
319 | hysdn_net_getname(hysdn_card * card) | 319 | hysdn_net_getname(hysdn_card *card) |
320 | { | 320 | { |
321 | struct net_device *dev = card->netif; | 321 | struct net_device *dev = card->netif; |
322 | 322 | ||