Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eth: yt6801: donot assigning value of variable of type to itself
Fix follow compile errors with clang-19: drivers/net/ethernet/motorcomm/yt6801/fuxi-gmac-desc.c:478:14: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign] 478 | start_index = start_index; | ~~~~~~~~~~~ ^ ~~~~~~~~~~~ 1 error generated. drivers/net/ethernet/motorcomm/yt6801/fuxi-gmac-hw.c:497:8: error: explicitly assigning value of variable of type 'struct fxgmac_pdata *' to itself [-Werror,-Wself-assign] 497 | pdata = pdata; | ~~~~~ ^ ~~~~~ drivers/net/ethernet/motorcomm/yt6801/fuxi-gmac-hw.c:623:8: error: explicitly assigning value of variable of type 'struct fxgmac_pdata *' to itself [-Werror,-Wself-assign] 623 | pdata = pdata; | ~~~~~ ^ ~~~~~ drivers/net/ethernet/motorcomm/yt6801/fuxi-gmac-hw.c:1232:8: error: explicitly assigning value of variable of type 'struct fxgmac_pdata *' to itself [-Werror,-Wself-assign] 1232 | pdata = pdata; | ~~~~~ ^ ~~~~~ drivers/net/ethernet/motorcomm/yt6801/fuxi-gmac-hw.c:2321:7: error: explicitly assigning value of variable of type 'unsigned int' to itself [-Werror,-Wself-assign] 2321 | type = type; | ~~~~ ^ ~~~~ drivers/net/ethernet/motorcomm/yt6801/fuxi-gmac-hw.c:4566:9: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign] 4566 | int_id = int_id; | ~~~~~~ ^ ~~~~~~ drivers/net/ethernet/motorcomm/yt6801/fuxi-gmac-hw.c:4888:8: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign] 4888 | speed = speed; | ~~~~~ ^ ~~~~~ 6 errors generated. Signed-off-by: WangYuli <[email protected]>
- Loading branch information