]> 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)
commit1267dfee4b6e1d3042808111c87a5e44346aed51
tree8b69d6900c688aed4dc5f43730ea7cf58ab41d8a
parenta2b1dbf4817a122893ff24b276b81b3cb1f9f64d
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: 348bfb5d34fc ("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