aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx25821
diff options
context:
space:
mode:
authorLeonid V. Fedorenchik <leonidsbox@gmail.com>2011-10-22 00:43:46 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-24 15:57:04 -0500
commit16f0fda705371d880d79c0bd44fc301a45a1deb7 (patch)
treed7bdca57b50da2ceb91a84a6b889dcf63a74affa /drivers/media/video/cx25821
parent85b7982d16397d8677e96c0f2b1776c50bf0cfc5 (diff)
[media] cx25821-video-upstream.c: Remove braces
Delete curly braces around single if-else statements. Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx25821')
-rw-r--r--drivers/media/video/cx25821/cx25821-video-upstream.c35
1 files changed, 14 insertions, 21 deletions
diff --git a/drivers/media/video/cx25821/cx25821-video-upstream.c b/drivers/media/video/cx25821/cx25821-video-upstream.c
index c0b80068f468..61b539737560 100644
--- a/drivers/media/video/cx25821/cx25821-video-upstream.c
+++ b/drivers/media/video/cx25821/cx25821-video-upstream.c
@@ -326,16 +326,12 @@ int cx25821_get_frame(struct cx25821_dev *dev, struct sram_channel *sram_ch)
326 if (dev->_file_status == END_OF_FILE) 326 if (dev->_file_status == END_OF_FILE)
327 return 0; 327 return 0;
328 328
329 if (dev->_isNTSC) { 329 if (dev->_isNTSC)
330 frame_size = 330 frame_size = (line_size == Y411_LINE_SZ) ?
331 (line_size == 331 FRAME_SIZE_NTSC_Y411 : FRAME_SIZE_NTSC_Y422;
332 Y411_LINE_SZ) ? FRAME_SIZE_NTSC_Y411 : 332 else
333 FRAME_SIZE_NTSC_Y422; 333 frame_size = (line_size == Y411_LINE_SZ) ?
334 } else { 334 FRAME_SIZE_PAL_Y411 : FRAME_SIZE_PAL_Y422;
335 frame_size =
336 (line_size ==
337 Y411_LINE_SZ) ? FRAME_SIZE_PAL_Y411 : FRAME_SIZE_PAL_Y422;
338 }
339 335
340 frame_offset = (frame_index_temp > 0) ? frame_size : 0; 336 frame_offset = (frame_index_temp > 0) ? frame_size : 0;
341 file_offset = dev->_frame_count * frame_size; 337 file_offset = dev->_frame_count * frame_size;
@@ -507,10 +503,9 @@ int cx25821_upstream_buffer_prepare(struct cx25821_dev *dev,
507 dma_addr_t dma_addr; 503 dma_addr_t dma_addr;
508 dma_addr_t data_dma_addr; 504 dma_addr_t data_dma_addr;
509 505
510 if (dev->_dma_virt_addr != NULL) { 506 if (dev->_dma_virt_addr != NULL)
511 pci_free_consistent(dev->pci, dev->upstream_riscbuf_size, 507 pci_free_consistent(dev->pci, dev->upstream_riscbuf_size,
512 dev->_dma_virt_addr, dev->_dma_phys_addr); 508 dev->_dma_virt_addr, dev->_dma_phys_addr);
513 }
514 509
515 dev->_dma_virt_addr = 510 dev->_dma_virt_addr =
516 pci_alloc_consistent(dev->pci, dev->upstream_riscbuf_size, 511 pci_alloc_consistent(dev->pci, dev->upstream_riscbuf_size,
@@ -528,11 +523,10 @@ int cx25821_upstream_buffer_prepare(struct cx25821_dev *dev,
528 /* Clear memory at address */ 523 /* Clear memory at address */
529 memset(dev->_dma_virt_addr, 0, dev->_risc_size); 524 memset(dev->_dma_virt_addr, 0, dev->_risc_size);
530 525
531 if (dev->_data_buf_virt_addr != NULL) { 526 if (dev->_data_buf_virt_addr != NULL)
532 pci_free_consistent(dev->pci, dev->upstream_databuf_size, 527 pci_free_consistent(dev->pci, dev->upstream_databuf_size,
533 dev->_data_buf_virt_addr, 528 dev->_data_buf_virt_addr,
534 dev->_data_buf_phys_addr); 529 dev->_data_buf_phys_addr);
535 }
536 /* For Video Data buffer allocation */ 530 /* For Video Data buffer allocation */
537 dev->_data_buf_virt_addr = 531 dev->_data_buf_virt_addr =
538 pci_alloc_consistent(dev->pci, dev->upstream_databuf_size, 532 pci_alloc_consistent(dev->pci, dev->upstream_databuf_size,
@@ -672,10 +666,9 @@ static irqreturn_t cx25821_upstream_irq(int irq, void *dev_id)
672 vid_status = cx_read(sram_ch->int_stat); 666 vid_status = cx_read(sram_ch->int_stat);
673 667
674 /* Only deal with our interrupt */ 668 /* Only deal with our interrupt */
675 if (vid_status) { 669 if (vid_status)
676 handled = 670 handled = cx25821_video_upstream_irq(dev, channel_num,
677 cx25821_video_upstream_irq(dev, channel_num, vid_status); 671 vid_status);
678 }
679 672
680 if (handled < 0) 673 if (handled < 0)
681 cx25821_stop_upstream_video_ch1(dev); 674 cx25821_stop_upstream_video_ch1(dev);