staging: i4l: act2000: remove extra space
It is not kernel coding style to give an extra space after a cast. We get warned about it by checkpatch. Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fdf94a00e3
commit
78481742be
@ -233,7 +233,7 @@ act2000_isa_receive(act2000_card *card)
|
|||||||
{
|
{
|
||||||
u_char c;
|
u_char c;
|
||||||
|
|
||||||
if (test_and_set_bit(ACT2000_LOCK_RX, (void *) &card->ilock) != 0)
|
if (test_and_set_bit(ACT2000_LOCK_RX, (void *)&card->ilock) != 0)
|
||||||
return;
|
return;
|
||||||
while (!act2000_isa_readb(card, &c)) {
|
while (!act2000_isa_readb(card, &c)) {
|
||||||
if (card->idat.isa.rcvidx < 8) {
|
if (card->idat.isa.rcvidx < 8) {
|
||||||
@ -248,7 +248,7 @@ act2000_isa_receive(act2000_card *card)
|
|||||||
card->idat.isa.rcvignore = 1;
|
card->idat.isa.rcvignore = 1;
|
||||||
printk(KERN_WARNING
|
printk(KERN_WARNING
|
||||||
"act2000_isa_receive: no memory\n");
|
"act2000_isa_receive: no memory\n");
|
||||||
test_and_clear_bit(ACT2000_LOCK_RX, (void *) &card->ilock);
|
test_and_clear_bit(ACT2000_LOCK_RX, (void *)&card->ilock);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
memcpy(skb_put(card->idat.isa.rcvskb, 8), card->idat.isa.rcvhdr, 8);
|
memcpy(skb_put(card->idat.isa.rcvskb, 8), card->idat.isa.rcvhdr, 8);
|
||||||
@ -288,7 +288,7 @@ act2000_isa_receive(act2000_card *card)
|
|||||||
(card->idat.isa.rcvidx < card->idat.isa.rcvlen)))
|
(card->idat.isa.rcvidx < card->idat.isa.rcvlen)))
|
||||||
act2000_schedule_poll(card);
|
act2000_schedule_poll(card);
|
||||||
}
|
}
|
||||||
test_and_clear_bit(ACT2000_LOCK_RX, (void *) &card->ilock);
|
test_and_clear_bit(ACT2000_LOCK_RX, (void *)&card->ilock);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -299,7 +299,7 @@ act2000_isa_send(act2000_card *card)
|
|||||||
actcapi_msg *msg;
|
actcapi_msg *msg;
|
||||||
int l;
|
int l;
|
||||||
|
|
||||||
if (test_and_set_bit(ACT2000_LOCK_TX, (void *) &card->ilock) != 0)
|
if (test_and_set_bit(ACT2000_LOCK_TX, (void *)&card->ilock) != 0)
|
||||||
return;
|
return;
|
||||||
while (1) {
|
while (1) {
|
||||||
spin_lock_irqsave(&card->lock, flags);
|
spin_lock_irqsave(&card->lock, flags);
|
||||||
@ -319,7 +319,7 @@ act2000_isa_send(act2000_card *card)
|
|||||||
spin_unlock_irqrestore(&card->lock, flags);
|
spin_unlock_irqrestore(&card->lock, flags);
|
||||||
if (!(card->sbuf)) {
|
if (!(card->sbuf)) {
|
||||||
/* No more data to send */
|
/* No more data to send */
|
||||||
test_and_clear_bit(ACT2000_LOCK_TX, (void *) &card->ilock);
|
test_and_clear_bit(ACT2000_LOCK_TX, (void *)&card->ilock);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
skb = card->sbuf;
|
skb = card->sbuf;
|
||||||
@ -327,7 +327,7 @@ act2000_isa_send(act2000_card *card)
|
|||||||
while (skb->len) {
|
while (skb->len) {
|
||||||
if (act2000_isa_writeb(card, *(skb->data))) {
|
if (act2000_isa_writeb(card, *(skb->data))) {
|
||||||
/* Fifo is full, but more data to send */
|
/* Fifo is full, but more data to send */
|
||||||
test_and_clear_bit(ACT2000_LOCK_TX, (void *) &card->ilock);
|
test_and_clear_bit(ACT2000_LOCK_TX, (void *)&card->ilock);
|
||||||
/* Schedule myself */
|
/* Schedule myself */
|
||||||
act2000_schedule_tx(card);
|
act2000_schedule_tx(card);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user