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>
This commit is contained in:
parent
90abbb4bf5
commit
e858a307b7
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue