summaryrefslogtreecommitdiff
path: root/hw/display
diff options
context:
space:
mode:
authorSimran Singhal <singhalsimran0@gmail.com>2020-04-01 22:23:14 +0530
committerLaurent Vivier <laurent@vivier.eu>2020-05-04 14:43:22 +0200
commitb3ac2b94cdc939a90d5a22338ae507689e2cfab0 (patch)
tree4586d31cee093411409945cdf2804f99ac93c5a2 /hw/display
parent949da1eb9db9df0d998ad2f3086979e4e23a44a1 (diff)
downloadqemu-b3ac2b94cdc939a90d5a22338ae507689e2cfab0.zip
Compress lines for immediate return
Compress two lines into a single line if immediate return statement is found. It also remove variables progress, val, data, ret and sock as they are no longer needed. Remove space between function "mixer_load" and '(' to fix the checkpatch.pl error:- ERROR: space prohibited between function name and open parenthesis '(' Done using following coccinelle script: @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Simran Singhal <singhalsimran0@gmail.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <20200401165314.GA3213@simran-Inspiron-5558> [lv: in handle_aiocb_write_zeroes_unmap() move "int ret" inside the #ifdef] Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/display')
-rw-r--r--hw/display/cirrus_vga.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c
index 0d391e1300..1f29731ffe 100644
--- a/hw/display/cirrus_vga.c
+++ b/hw/display/cirrus_vga.c
@@ -2411,12 +2411,10 @@ static uint64_t cirrus_linear_bitblt_read(void *opaque,
unsigned size)
{
CirrusVGAState *s = opaque;
- uint32_t ret;
/* XXX handle bitblt */
(void)s;
- ret = 0xff;
- return ret;
+ return 0xff;
}
static void cirrus_linear_bitblt_write(void *opaque,