Skip to content

Commit 3f81fc9

Browse files
gushengxianmchehab
authored andcommitted
media: b2c2-flexcop-usb: fix some whitespace coding style
On some places, there's a missing whitespace. Link: https://lore.kernel.org/linux-media/[email protected] Cc: [email protected], [email protected], gushengxian <[email protected]> Signed-off-by: gushengxian <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 3092478 commit 3f81fc9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

drivers/media/usb/b2c2/flexcop-usb.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -171,19 +171,19 @@ static int flexcop_usb_v8_memory_req(struct flexcop_usb *fc_usb,
171171
return ret;
172172
}
173173

174-
#define bytes_left_to_read_on_page(paddr,buflen) \
174+
#define bytes_left_to_read_on_page(paddr, buflen) \
175175
((V8_MEMORY_PAGE_SIZE - (paddr & V8_MEMORY_PAGE_MASK)) > buflen \
176176
? buflen : (V8_MEMORY_PAGE_SIZE - (paddr & V8_MEMORY_PAGE_MASK)))
177177

178178
static int flexcop_usb_memory_req(struct flexcop_usb *fc_usb,
179179
flexcop_usb_request_t req, flexcop_usb_mem_page_t page_start,
180180
u32 addr, int extended, u8 *buf, u32 len)
181181
{
182-
int i,ret = 0;
182+
int i, ret = 0;
183183
u16 wMax;
184184
u32 pagechunk = 0;
185185

186-
switch(req) {
186+
switch (req) {
187187
case B2C2_USB_READ_V8_MEM:
188188
wMax = USB_MEM_READ_MAX;
189189
break;
@@ -341,8 +341,8 @@ static void flexcop_usb_process_frame(struct flexcop_usb *fc_usb,
341341
b = fc_usb->tmp_buffer;
342342
l = fc_usb->tmp_buffer_length;
343343
} else {
344-
b=buffer;
345-
l=buffer_length;
344+
b = buffer;
345+
l = buffer_length;
346346
}
347347

348348
while (l >= 190) {
@@ -368,7 +368,7 @@ static void flexcop_usb_process_frame(struct flexcop_usb *fc_usb,
368368
}
369369
}
370370

371-
if (l>0)
371+
if (l > 0)
372372
memcpy(fc_usb->tmp_buffer, b, l);
373373
fc_usb->tmp_buffer_length = l;
374374
}
@@ -399,7 +399,7 @@ static void flexcop_usb_urb_complete(struct urb *urb)
399399
urb->iso_frame_desc[i].status = 0;
400400
urb->iso_frame_desc[i].actual_length = 0;
401401
}
402-
usb_submit_urb(urb,GFP_ATOMIC);
402+
usb_submit_urb(urb, GFP_ATOMIC);
403403
}
404404

405405
static int flexcop_usb_stream_control(struct flexcop_device *fc, int onoff)
@@ -413,7 +413,7 @@ static void flexcop_usb_transfer_exit(struct flexcop_usb *fc_usb)
413413
int i;
414414
for (i = 0; i < B2C2_USB_NUM_ISO_URB; i++)
415415
if (fc_usb->iso_urb[i] != NULL) {
416-
deb_ts("unlinking/killing urb no. %d\n",i);
416+
deb_ts("unlinking/killing urb no. %d\n", i);
417417
usb_kill_urb(fc_usb->iso_urb[i]);
418418
usb_free_urb(fc_usb->iso_urb[i]);
419419
}
@@ -483,7 +483,7 @@ static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb)
483483
err("submitting urb %d failed with %d.", i, ret);
484484
goto urb_error;
485485
}
486-
deb_ts("submitted urb no. %d.\n",i);
486+
deb_ts("submitted urb no. %d.\n", i);
487487
}
488488

489489
/* SRAM */

0 commit comments

Comments
 (0)