Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] squash lines for simple wrapper functions

Remove unneeded variables and assignments.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Masahiro Yamada and committed by
Mauro Carvalho Chehab
29a8d979 4a322983

+20 -60
+2 -6
drivers/media/dvb-core/dvb_frontend.c
··· 1520 1520 1521 1521 static bool is_dvbv3_delsys(u32 delsys) 1522 1522 { 1523 - bool status; 1524 - 1525 - status = (delsys == SYS_DVBT) || (delsys == SYS_DVBC_ANNEX_A) || 1526 - (delsys == SYS_DVBS) || (delsys == SYS_ATSC); 1527 - 1528 - return status; 1523 + return (delsys == SYS_DVBT) || (delsys == SYS_DVBC_ANNEX_A) || 1524 + (delsys == SYS_DVBS) || (delsys == SYS_ATSC); 1529 1525 } 1530 1526 1531 1527 /**
+1 -4
drivers/media/pci/meye/meye.c
··· 586 586 /* get the next ready frame from the dma engine */ 587 587 static u32 mchip_get_frame(void) 588 588 { 589 - u32 v; 590 - 591 - v = mchip_read(MCHIP_MM_FIR(meye.mchip_fnum)); 592 - return v; 589 + return mchip_read(MCHIP_MM_FIR(meye.mchip_fnum)); 593 590 } 594 591 595 592 /* frees the current frame from the dma engine */
+1 -3
drivers/media/pci/ttpci/av7110.c
··· 2925 2925 2926 2926 static int __init av7110_init(void) 2927 2927 { 2928 - int retval; 2929 - retval = saa7146_register_extension(&av7110_extension_driver); 2930 - return retval; 2928 + return saa7146_register_extension(&av7110_extension_driver); 2931 2929 } 2932 2930 2933 2931
+3 -14
drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c
··· 178 178 179 179 unsigned int exynos4_jpeg_get_int_status(void __iomem *base) 180 180 { 181 - unsigned int int_status; 182 - 183 - int_status = readl(base + EXYNOS4_INT_STATUS_REG); 184 - 185 - return int_status; 181 + return readl(base + EXYNOS4_INT_STATUS_REG); 186 182 } 187 183 188 184 unsigned int exynos4_jpeg_get_fifo_status(void __iomem *base) 189 185 { 190 - unsigned int fifo_status; 191 - 192 - fifo_status = readl(base + EXYNOS4_FIFO_STATUS_REG); 193 - 194 - return fifo_status; 186 + return readl(base + EXYNOS4_FIFO_STATUS_REG); 195 187 } 196 188 197 189 void exynos4_jpeg_set_huf_table_enable(void __iomem *base, int value) ··· 288 296 289 297 unsigned int exynos4_jpeg_get_stream_size(void __iomem *base) 290 298 { 291 - unsigned int size; 292 - 293 - size = readl(base + EXYNOS4_BITSTREAM_SIZE_REG); 294 - return size; 299 + return readl(base + EXYNOS4_BITSTREAM_SIZE_REG); 295 300 } 296 301 297 302 void exynos4_jpeg_set_dec_bitstream_size(void __iomem *base, unsigned int size)
+1 -5
drivers/media/platform/ti-vpe/cal.c
··· 483 483 484 484 static inline int cal_runtime_get(struct cal_dev *dev) 485 485 { 486 - int r; 487 - 488 - r = pm_runtime_get_sync(&dev->pdev->dev); 489 - 490 - return r; 486 + return pm_runtime_get_sync(&dev->pdev->dev); 491 487 } 492 488 493 489 static inline void cal_runtime_put(struct cal_dev *dev)
+1 -5
drivers/media/rc/fintek-cir.c
··· 104 104 /* read val from cir config register */ 105 105 static u8 fintek_cir_reg_read(struct fintek_dev *fintek, u8 offset) 106 106 { 107 - u8 val; 108 - 109 - val = inb(fintek->cir_addr + offset); 110 - 111 - return val; 107 + return inb(fintek->cir_addr + offset); 112 108 } 113 109 114 110 /* dump current cir register contents */
+6 -8
drivers/media/usb/dvb-usb-v2/lmedm04.c
··· 156 156 static int lme2510_bulk_write(struct usb_device *dev, 157 157 u8 *snd, int len, u8 pipe) 158 158 { 159 - int ret, actual_l; 159 + int actual_l; 160 160 161 - ret = usb_bulk_msg(dev, usb_sndbulkpipe(dev, pipe), 162 - snd, len , &actual_l, 100); 163 - return ret; 161 + return usb_bulk_msg(dev, usb_sndbulkpipe(dev, pipe), 162 + snd, len, &actual_l, 100); 164 163 } 165 164 166 165 static int lme2510_bulk_read(struct usb_device *dev, 167 166 u8 *rev, int len, u8 pipe) 168 167 { 169 - int ret, actual_l; 168 + int actual_l; 170 169 171 - ret = usb_bulk_msg(dev, usb_rcvbulkpipe(dev, pipe), 172 - rev, len , &actual_l, 200); 173 - return ret; 170 + return usb_bulk_msg(dev, usb_rcvbulkpipe(dev, pipe), 171 + rev, len, &actual_l, 200); 174 172 } 175 173 176 174 static int lme2510_usb_talk(struct dvb_usb_device *d,
+3 -7
drivers/media/usb/dvb-usb/m920x.c
··· 55 55 static inline int m920x_write(struct usb_device *udev, u8 request, 56 56 u16 value, u16 index) 57 57 { 58 - int ret; 59 - 60 - ret = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), 61 - request, USB_TYPE_VENDOR | USB_DIR_OUT, 62 - value, index, NULL, 0, 2000); 63 - 64 - return ret; 58 + return usb_control_msg(udev, usb_sndctrlpipe(udev, 0), request, 59 + USB_TYPE_VENDOR | USB_DIR_OUT, value, index, 60 + NULL, 0, 2000); 65 61 } 66 62 67 63 static inline int m920x_write_seq(struct usb_device *udev, u8 request,
+1 -4
drivers/media/usb/gspca/jl2005bcd.c
··· 299 299 300 300 static int jl2005c_stop(struct gspca_dev *gspca_dev) 301 301 { 302 - int retval; 303 - 304 - retval = jl2005c_write_reg(gspca_dev, 0x07, 0x00); 305 - return retval; 302 + return jl2005c_write_reg(gspca_dev, 0x07, 0x00); 306 303 } 307 304 308 305 /*
+1 -4
drivers/media/usb/gspca/sq905c.c
··· 257 257 /* this function is called at probe and resume time */ 258 258 static int sd_init(struct gspca_dev *gspca_dev) 259 259 { 260 - int ret; 261 - 262 260 /* connect to the camera and reset it. */ 263 - ret = sq905c_command(gspca_dev, SQ905C_CLEAR, 0); 264 - return ret; 261 + return sq905c_command(gspca_dev, SQ905C_CLEAR, 0); 265 262 } 266 263 267 264 /* Set up for getting frames. */