Commit ea7d09a
ext4: remove unneeded if checks before kfree
kfree already checks if its argument is NULL. This fixes two
Coccinelle/coccicheck warnings reported by ifnullfree.cocci.
Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Link: https://lore.kernel.org/r/20240317153638.2136-2-thorsten.blum@toblux.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent a0c7cce commit ea7d09a
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2078 | 2078 | | |
2079 | 2079 | | |
2080 | 2080 | | |
2081 | | - | |
2082 | | - | |
| 2081 | + | |
2083 | 2082 | | |
2084 | 2083 | | |
2085 | 2084 | | |
| |||
2484 | 2483 | | |
2485 | 2484 | | |
2486 | 2485 | | |
2487 | | - | |
2488 | | - | |
| 2486 | + | |
2489 | 2487 | | |
2490 | 2488 | | |
2491 | 2489 | | |
| |||
0 commit comments