Skip to content

Commit 50e66cc

Browse files
standby24x7gregkh
authored andcommitted
staging: unisys: visornic: Fix typo in visornic_main.c
This patch fix some spelling typos found in visornic_main.c Signed-off-by: Masanari Iida <[email protected]> Acked-by: David Kershner <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2c474b8 commit 50e66cc

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

drivers/staging/unisys/visornic/visornic_main.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ send_enbdis(struct net_device *netdev, int state,
423423

424424
/**
425425
* visornic_disable_with_timeout - Disable network adapter
426-
* @netdev: netdevice to disale
426+
* @netdev: netdevice to disable
427427
* @timeout: timeout to wait for disable
428428
*
429429
* Disable the network adapter and inform the IO Partition that we
@@ -532,7 +532,7 @@ init_rcv_bufs(struct net_device *netdev, struct visornic_devdata *devdata)
532532
return -ENOMEM;
533533
count = i;
534534

535-
/* Ensure we can alloc 2/3rd of the requeested number of buffers.
535+
/* Ensure we can alloc 2/3rd of the requested number of buffers.
536536
* 2/3 is an arbitrary choice; used also in ndis init.c
537537
*/
538538
if (count < ((2 * devdata->num_rcv_bufs) / 3)) {
@@ -561,7 +561,7 @@ init_rcv_bufs(struct net_device *netdev, struct visornic_devdata *devdata)
561561
*
562562
* Sends enable to IOVM, inits, and posts receive buffers to IOVM
563563
* timeout is defined in msecs (timeout of 0 specifies infinite wait)
564-
* Return 0 for success, negavite for failure.
564+
* Return 0 for success, negative for failure.
565565
*/
566566
static int
567567
visornic_enable_with_timeout(struct net_device *netdev, const int timeout)
@@ -750,7 +750,7 @@ static inline bool vnic_hit_low_watermark(struct visornic_devdata *devdata,
750750
* @skb: Packet to be sent
751751
* @netdev: net device the packet is being sent from
752752
*
753-
* Convert the skb to a cmdrsp so the IO Partition can undersand it.
753+
* Convert the skb to a cmdrsp so the IO Partition can understand it.
754754
* Send the XMIT command to the IO Partition for processing. This
755755
* function is protected from concurrent calls by a spinlock xmit_lock
756756
* in the net_device struct, but as soon as the function returns it
@@ -1097,7 +1097,7 @@ repost_return(struct uiscmdrsp *cmdrsp, struct visornic_devdata *devdata,
10971097
*
10981098
* Got a receive packet back from the IO Part, handle it and send
10991099
* it up the stack.
1100-
* Returns 1 iff an skb was receieved, otherwise 0
1100+
* Returns 1 iff an skb was received, otherwise 0
11011101
*/
11021102
static int
11031103
visornic_rx(struct uiscmdrsp *cmdrsp)
@@ -1227,7 +1227,7 @@ visornic_rx(struct uiscmdrsp *cmdrsp)
12271227
}
12281228
}
12291229

1230-
/* set up packet's protocl type using ethernet header - this
1230+
/* set up packet's protocol type using ethernet header - this
12311231
* sets up skb->pkt_type & it also PULLS out the eth header
12321232
*/
12331233
skb->protocol = eth_type_trans(skb, netdev);
@@ -1549,7 +1549,7 @@ drain_resp_queue(struct uiscmdrsp *cmdrsp, struct visornic_devdata *devdata)
15491549
* @cmdrsp: io channel command response message
15501550
* @devdata: visornic device to drain
15511551
*
1552-
* Drain the respones queue of any responses from the IO partition.
1552+
* Drain the response queue of any responses from the IO partition.
15531553
* Process the responses as we get them.
15541554
* Returns when response queue is empty or when the thread stops.
15551555
*/
@@ -1665,7 +1665,7 @@ static int visornic_poll(struct napi_struct *napi, int budget)
16651665
* poll_for_irq - Checks the status of the response queue.
16661666
* @v: void pointer to the visronic devdata
16671667
*
1668-
* Main function of the vnic_incoming thread. Peridocially check the
1668+
* Main function of the vnic_incoming thread. Periodically check the
16691669
* response queue and drain it if needed.
16701670
* Returns when thread has stopped.
16711671
*/
@@ -1711,7 +1711,7 @@ static int visornic_probe(struct visor_device *dev)
17111711
netdev->watchdog_timeo = 5 * HZ;
17121712
SET_NETDEV_DEV(netdev, &dev->device);
17131713

1714-
/* Get MAC adddress from channel and read it into the device. */
1714+
/* Get MAC address from channel and read it into the device. */
17151715
netdev->addr_len = ETH_ALEN;
17161716
channel_offset = offsetof(struct spar_io_channel_protocol,
17171717
vnic.macaddr);
@@ -1835,7 +1835,7 @@ static int visornic_probe(struct visor_device *dev)
18351835
/* Let's start our threads to get responses */
18361836
netif_napi_add(netdev, &devdata->napi, visornic_poll, NAPI_WEIGHT);
18371837

1838-
/* Note: Interupts have to be enable before the while
1838+
/* Note: Interrupts have to be enable before the while
18391839
* loop below because the napi routine is responsible for
18401840
* setting enab_dis_acked
18411841
*/
@@ -1848,7 +1848,7 @@ static int visornic_probe(struct visor_device *dev)
18481848
goto cleanup_napi_add;
18491849
}
18501850

1851-
/* create debgug/sysfs directories */
1851+
/* create debug/sysfs directories */
18521852
devdata->eth_debugfs_dir = debugfs_create_dir(netdev->name,
18531853
visornic_debugfs_dir);
18541854
if (!devdata->eth_debugfs_dir) {

0 commit comments

Comments
 (0)