Skip to content

Commit

Permalink
drm/arise: donot assigning value of variable of type to itself
Browse files Browse the repository at this point in the history
Fix follow compile errors with clang-19:

drivers/gpu/drm/arise/linux/os_interface.c:1995:10: error: explicitly assigning value of variable of type 'unsigned long' to itself [-Werror,-Wself-assign]
 1995 |     base = base;
      |     ~~~~ ^ ~~~~
drivers/gpu/drm/arise/linux/os_interface.c:1996:10: error: explicitly assigning value of variable of type 'unsigned long' to itself [-Werror,-Wself-assign]
 1996 |     size = size;
      |     ~~~~ ^ ~~~~
2 errors generated.

Signed-off-by: WangYuli <[email protected]>
  • Loading branch information
Avenger-285714 committed Nov 25, 2024
1 parent 6d4a0c1 commit f88ecca
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/arise/linux/os_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1992,8 +1992,6 @@ int gf_mtrr_del(int reg, unsigned long base, unsigned long size)
err = mtrr_del(reg, base, size);
#else
/* avoid build warning */
base = base;
size = size;
arch_phys_wc_del(reg);
err = 0;
#endif
Expand Down

0 comments on commit f88ecca

Please sign in to comment.