Commit 519424d
drm/radeon: delete useless function return values & remove meaningless if(r) check code
Function radeon_fence_driver_init always returns success,
the function type maybe coule be changed to void.
This patch first delete the check of the return
value of the function call radeon_fence_driver_init, then,
optimise the function declaration and function to void type.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent a7268cf commit 519424d
16 files changed
Lines changed: 16 additions & 48 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8584 | 8584 | | |
8585 | 8585 | | |
8586 | 8586 | | |
8587 | | - | |
8588 | | - | |
8589 | | - | |
| 8587 | + | |
8590 | 8588 | | |
8591 | 8589 | | |
8592 | 8590 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5208 | 5208 | | |
5209 | 5209 | | |
5210 | 5210 | | |
5211 | | - | |
5212 | | - | |
5213 | | - | |
| 5211 | + | |
5214 | 5212 | | |
5215 | 5213 | | |
5216 | 5214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2375 | 2375 | | |
2376 | 2376 | | |
2377 | 2377 | | |
2378 | | - | |
2379 | | - | |
2380 | | - | |
| 2378 | + | |
2381 | 2379 | | |
2382 | 2380 | | |
2383 | 2381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4056 | 4056 | | |
4057 | 4057 | | |
4058 | 4058 | | |
4059 | | - | |
4060 | | - | |
4061 | | - | |
| 4059 | + | |
4062 | 4060 | | |
4063 | 4061 | | |
4064 | 4062 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1549 | 1549 | | |
1550 | 1550 | | |
1551 | 1551 | | |
1552 | | - | |
1553 | | - | |
1554 | | - | |
| 1552 | + | |
1555 | 1553 | | |
1556 | 1554 | | |
1557 | 1555 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
| 428 | + | |
432 | 429 | | |
433 | 430 | | |
434 | 431 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
303 | | - | |
304 | | - | |
| 302 | + | |
305 | 303 | | |
306 | 304 | | |
307 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3282 | 3282 | | |
3283 | 3283 | | |
3284 | 3284 | | |
3285 | | - | |
3286 | | - | |
3287 | | - | |
| 3285 | + | |
3288 | 3286 | | |
3289 | 3287 | | |
3290 | 3288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
| 388 | + | |
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
908 | | - | |
909 | 908 | | |
910 | | - | |
| 909 | + | |
911 | 910 | | |
912 | 911 | | |
913 | 912 | | |
| |||
917 | 916 | | |
918 | 917 | | |
919 | 918 | | |
920 | | - | |
921 | | - | |
922 | 919 | | |
923 | 920 | | |
924 | 921 | | |
| |||
0 commit comments