diff options
author | Fancy Fang <chen.fang@nxp.com> | 2017-09-22 22:19:02 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | 0095bc3bd2c41651da15bdc40f72abb9df713d71 (patch) | |
tree | 9bd1f170b4db035d4e45a94f07a7ebd9e783bd3e /drivers/video | |
parent | 4316436939c3f28f02c69ad2a3fa51921a601c99 (diff) |
MLK-16536-9 video: fbdev: dcss: remove undesired variables in 'dcss_set_par()'
The variables 'cinfo' and 'chan_info' both refer to the
same 'struct dcss_channel_info' data. So remove 'chan_info'
and its related variables to make code more clean.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/mxc/imx_dcss.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/video/fbdev/mxc/imx_dcss.c b/drivers/video/fbdev/mxc/imx_dcss.c index 550fa8c7041a..210af6e175f1 100644 --- a/drivers/video/fbdev/mxc/imx_dcss.c +++ b/drivers/video/fbdev/mxc/imx_dcss.c @@ -2613,21 +2613,16 @@ static int dcss_set_par(struct fb_info *fbi) int fb_node = fbi->node; struct dcss_channel_info *cinfo = fbi->par; struct dcss_info *info = cinfo->dev_data; - struct dcss_channels *chans = &info->chans; - struct dcss_channel_info *chan_info; - struct cbuffer *cb; + struct cbuffer *cb = &cinfo->cb; struct ctxld_commit *cc; if (fb_node < 0 || fb_node > 2) BUG_ON(1); - chan_info = &chans->chan_info[fb_node]; - cb = &chan_info->cb; - /* TODO: add save/recovery when config failed */ - fb_var_to_pixmap(&chan_info->input, &fbi->var); + fb_var_to_pixmap(&cinfo->input, &fbi->var); - ret = config_channel_pipe(chan_info); + ret = config_channel_pipe(cinfo); if (ret) goto fail; |