diff options
| author | Philipp Hahn <phahn-oss@avm.de> | 2026-03-10 12:48:28 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-04-07 18:56:02 +0200 |
| commit | e5267796482fad93ee7948c7cbc37f32046244f7 (patch) | |
| tree | 49873c743e0efdff1876a00dc4414e417b39b0f5 /tools/lib/python | |
| parent | 94e445085c7be52c1cc937959fa8254b56cdf672 (diff) | |
btrfs: prefer IS_ERR_OR_NULL() over manual NULL check
Prefer using IS_ERR_OR_NULL() over using IS_ERR() and a manual NULL
check.
IS_ERR_OR_NULL() already uses likely(!ptr) internally. checkpatch does
not like nesting it:
> WARNING: nested (un)?likely() calls, IS_ERR_OR_NULL already uses
> unlikely() internally
Remove the explicit use of likely().
Change generated with coccinelle.
Signed-off-by: Philipp Hahn <phahn-oss@avm.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
