From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1822892906482205638==" MIME-Version: 1.0 From: kernel test robot Subject: drivers/gpu/drm/aspeed/aspeed_gfx_drv.c:80:9: warning: Identical condition 'ret', second condition is always false Date: Tue, 27 Oct 2020 21:03:33 +0800 Message-ID: <202010272130.Q2fDHcDZ-lkp@intel.com> List-Id: To: kbuild@lists.01.org --===============1822892906482205638== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable CC: kbuild-all(a)lists.01.org CC: linux-kernel(a)vger.kernel.org TO: Daniel Vetter tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = master head: 4525c8781ec0701ce824e8bd379ae1b129e26568 commit: c2c25c1cf96927a0b6ddb6aaa063f1fdcc90d749 drm/aspeed: Use managed dr= mm_mode_config_cleanup date: 7 weeks ago :::::: branch date: 14 hours ago :::::: commit date: 7 weeks ago compiler: nds32le-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot cppcheck possible warnings: (new ones prefixed by >>, may not real problems) >> drivers/gpu/drm/aspeed/aspeed_gfx_drv.c:80:9: warning: Identical conditi= on 'ret', second condition is always false [identicalConditionAfterEarlyExi= t] return ret; ^ drivers/gpu/drm/aspeed/aspeed_gfx_drv.c:71:6: note: first condition if (ret) ^ drivers/gpu/drm/aspeed/aspeed_gfx_drv.c:80:9: note: second condition return ret; ^ vim +/ret +80 drivers/gpu/drm/aspeed/aspeed_gfx_drv.c 4f2a8f5898ecd80 Joel Stanley 2019-04-03 65 = c2c25c1cf96927a Daniel Vetter 2020-09-04 66 static int aspeed_gfx_setup_m= ode_config(struct drm_device *drm) 4f2a8f5898ecd80 Joel Stanley 2019-04-03 67 { c2c25c1cf96927a Daniel Vetter 2020-09-04 68 int ret; c2c25c1cf96927a Daniel Vetter 2020-09-04 69 = c2c25c1cf96927a Daniel Vetter 2020-09-04 70 ret =3D drmm_mode_config_ini= t(drm); c2c25c1cf96927a Daniel Vetter 2020-09-04 71 if (ret) c2c25c1cf96927a Daniel Vetter 2020-09-04 72 return ret; 4f2a8f5898ecd80 Joel Stanley 2019-04-03 73 = 4f2a8f5898ecd80 Joel Stanley 2019-04-03 74 drm->mode_config.min_width = =3D 0; 4f2a8f5898ecd80 Joel Stanley 2019-04-03 75 drm->mode_config.min_height = =3D 0; 4f2a8f5898ecd80 Joel Stanley 2019-04-03 76 drm->mode_config.max_width = =3D 800; 4f2a8f5898ecd80 Joel Stanley 2019-04-03 77 drm->mode_config.max_height = =3D 600; 4f2a8f5898ecd80 Joel Stanley 2019-04-03 78 drm->mode_config.funcs =3D &= aspeed_gfx_mode_config_funcs; c2c25c1cf96927a Daniel Vetter 2020-09-04 79 = c2c25c1cf96927a Daniel Vetter 2020-09-04 @80 return ret; 4f2a8f5898ecd80 Joel Stanley 2019-04-03 81 } 4f2a8f5898ecd80 Joel Stanley 2019-04-03 82 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1822892906482205638==--