MLK-20216-4: video/fbdev/imx_dcss: remove useless function call
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Wed, 14 Nov 2018 12:55:55 +0000 (14:55 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
This fixes Coverity issue since the function does nothing. The function
only returns some values which are never used.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
CC: Fancy Fang <chen.fang@nxp.com>
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
drivers/video/fbdev/mxc/imx_dcss.c

index 3f3d65b..fafd1ec 100644 (file)
@@ -1211,30 +1211,6 @@ static int dcss_clks_rate_set(struct dcss_info *info)
        return 0;
 }
 
-static int dcss_dec400d_config(struct dcss_info *info,
-                              bool decompress, bool resolve)
-{
-       struct dcss_channel_info *chan_info;
-       struct cbuffer *cb;
-
-       if (resolve == true)
-               return -EINVAL;
-
-       /* dec400d always in channel 1 */
-       chan_info = &info->chans.chan_info[0];
-       cb = &chan_info->cb;
-
-       if (decompress == true) {
-               /* TODO: configure decompress */
-               ;
-       } else {
-               /* TODO: configure bypass */
-               ;
-       }
-
-       return 0;
-}
-
 static int dcss_dtrc_config(uint32_t dtrc_ch,
                            struct dcss_info *info,
                            bool decompress,
@@ -1311,7 +1287,6 @@ static int dcss_decomp_config(uint32_t decomp_ch, struct dcss_info *info)
 
        switch (decomp_ch) {
        case 0:         /* DEC400D */
-               dcss_dec400d_config(info, need_decomp, need_resolve);
                break;
        case 1:         /* DTRC1   */
        case 2:         /* DTRC2   */