]> git.baikalelectronics.ru Git - kernel.git/commit
cxl/pci: Drop shadowed variable
authorDan Williams <dan.j.williams@intel.com>
Fri, 8 Apr 2022 19:58:44 +0000 (12:58 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 8 Apr 2022 19:59:43 +0000 (12:59 -0700)
commit154af3594deb4b18cfec6b3e74dca6c7278fdd33
tree8b69d6900c688aed4dc5f43730ea7cf58ab41d8a
parent38e8048acddb7392a59fa1efeb638b25fd2eee48
cxl/pci: Drop shadowed variable

0day reports that wait_for_media_ready() declares an @rc variable twice.

>> drivers/cxl/pci.c:439:7: warning: Local variable 'rc' shadows outer variable [shadowVariable]
     int rc;
         ^
   drivers/cxl/pci.c:431:6: note: Shadowed declaration
    int rc, i;
        ^
   drivers/cxl/pci.c:439:7: note: Shadow variable
     int rc;
         ^

Cc: Randy Dunlap <rdunlap@infradead.org>
Fixes: 88fed6cc7dfd ("cxl/pci: Implement wait for media active")
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Link: https://lore.kernel.org/r/164944636936.455177.14136200464724208233.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/pci.c