diff options
| author | Guenter Roeck <[email protected]> | 2021-05-21 08:02:12 -0700 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-05-21 18:18:04 -0400 |
| commit | 6a593769c75fe0e1d32dbdb3dbaf4a6e8fa9e460 (patch) | |
| tree | 3a365269c535f477579a59e47c47355691cecce8 /tools/perf/scripts/python | |
| parent | f43ae2d1806c2b8a0934cb4acddd3cf3750d10f8 (diff) | |
drm/amd/amdkfd: Drop unnecessary NULL check after container_of
The first parameter passed to container_of() is the pointer to the work
structure passed to the worker and never NULL. The NULL check on the
result of container_of() is therefore unnecessary and misleading.
Remove it.
This change was made automatically with the following Coccinelle script.
@@
type t;
identifier v;
statement s;
@@
<+...
(
t v = container_of(...);
|
v = container_of(...);
)
...
when != v
- if (\( !v \| v == NULL \) ) s
...+>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions