diff options
author | Tom Rix <trix@redhat.com> | 2022-05-21 21:59:42 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-05-25 14:16:07 +0200 |
commit | 9f56390f8c49a1e2f38f049673dcbb407a742302 (patch) | |
tree | 9c129130719a1666db3f8b63c0d356ab9fc489d7 /drivers/video/fbdev/xen-fbfront.c | |
parent | video: fbdev: pxa3xx-gcu: release the resources correctly in pxa3xx_gcu_probe... (diff) | |
download | linux-9f56390f8c49a1e2f38f049673dcbb407a742302.tar.xz linux-9f56390f8c49a1e2f38f049673dcbb407a742302.zip |
video: fbdev: xen: remove setting of 'transp' parameter
cppcheck reports
[drivers/video/fbdev/xen-fbfront.c:226]: (style) Assignment of function parameter has no effect outside the function.
The value parameter 'transp' is not used, so setting it can be removed.
Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video/fbdev/xen-fbfront.c')
-rw-r--r-- | drivers/video/fbdev/xen-fbfront.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/video/fbdev/xen-fbfront.c b/drivers/video/fbdev/xen-fbfront.c index 6826f986da43..c17b08aa67ab 100644 --- a/drivers/video/fbdev/xen-fbfront.c +++ b/drivers/video/fbdev/xen-fbfront.c @@ -224,7 +224,6 @@ static int xenfb_setcolreg(unsigned regno, unsigned red, unsigned green, red = CNVT_TOHW(red, info->var.red.length); green = CNVT_TOHW(green, info->var.green.length); blue = CNVT_TOHW(blue, info->var.blue.length); - transp = CNVT_TOHW(transp, info->var.transp.length); #undef CNVT_TOHW v = (red << info->var.red.offset) | |