[intel-tdx:guest-rebased 65/83] kernel/dma/swiotlb.c:433:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless.

From: kernel test robot
Date: Sat Mar 26 2022 - 04:11:32 EST


tree: https://github.com/intel/tdx.git guest-rebased
head: 4c095660b91dbdd18042456e395af0deeef93485
commit: 4ab45cefa80f97ba2bdc31226523c891832d1080 [65/83] swiotlb: Split up single swiotlb lock
config: s390-randconfig-c023-20220324 (https://download.01.org/0day-ci/archive/20220326/202203261644.zQlZ2Jw4-lkp@xxxxxxxxx/config)
compiler: s390-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>


cocci warnings: (new ones prefixed by >>)
>> kernel/dma/swiotlb.c:433:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless.

Please review and possibly fold the followup patch.

--
0-DAY CI Kernel Test Service
https://01.org/lkp