[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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

父節點
4a3229834d
當前提交
29a8d97925
@@ -178,20 +178,12 @@ void exynos4_jpeg_set_interrupt(void __iomem *base, unsigned int version)
|
||||
|
||||
unsigned int exynos4_jpeg_get_int_status(void __iomem *base)
|
||||
{
|
||||
unsigned int int_status;
|
||||
|
||||
int_status = readl(base + EXYNOS4_INT_STATUS_REG);
|
||||
|
||||
return int_status;
|
||||
return readl(base + EXYNOS4_INT_STATUS_REG);
|
||||
}
|
||||
|
||||
unsigned int exynos4_jpeg_get_fifo_status(void __iomem *base)
|
||||
{
|
||||
unsigned int fifo_status;
|
||||
|
||||
fifo_status = readl(base + EXYNOS4_FIFO_STATUS_REG);
|
||||
|
||||
return fifo_status;
|
||||
return readl(base + EXYNOS4_FIFO_STATUS_REG);
|
||||
}
|
||||
|
||||
void exynos4_jpeg_set_huf_table_enable(void __iomem *base, int value)
|
||||
@@ -296,10 +288,7 @@ void exynos4_jpeg_set_encode_hoff_cnt(void __iomem *base, unsigned int fmt)
|
||||
|
||||
unsigned int exynos4_jpeg_get_stream_size(void __iomem *base)
|
||||
{
|
||||
unsigned int size;
|
||||
|
||||
size = readl(base + EXYNOS4_BITSTREAM_SIZE_REG);
|
||||
return size;
|
||||
return readl(base + EXYNOS4_BITSTREAM_SIZE_REG);
|
||||
}
|
||||
|
||||
void exynos4_jpeg_set_dec_bitstream_size(void __iomem *base, unsigned int size)
|
||||
|
@@ -483,11 +483,7 @@ static void cal_get_hwinfo(struct cal_dev *dev)
|
||||
|
||||
static inline int cal_runtime_get(struct cal_dev *dev)
|
||||
{
|
||||
int r;
|
||||
|
||||
r = pm_runtime_get_sync(&dev->pdev->dev);
|
||||
|
||||
return r;
|
||||
return pm_runtime_get_sync(&dev->pdev->dev);
|
||||
}
|
||||
|
||||
static inline void cal_runtime_put(struct cal_dev *dev)
|
||||
|
Reference in New Issue
Block a user