diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2023-03-29 11:50:44 +0200 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2023-07-06 19:58:49 +0200 |
commit | 6d7467957ecdc9018fb860bb60738e997abeaecb (patch) | |
tree | 09260d1f708c22274448d827ed0471f8abfd1588 /Documentation/hwmon/mcp3021.rst | |
parent | AppArmor: Fix some kernel-doc comments (diff) | |
download | linux-6d7467957ecdc9018fb860bb60738e997abeaecb.tar.xz linux-6d7467957ecdc9018fb860bb60738e997abeaecb.zip |
apparmor: Return directly after a failed kzalloc() in two functions
1. Return directly after a call of the function “kzalloc” failed
at the beginning in these function implementations.
2. Omit extra initialisations (for a few local variables)
which became unnecessary with this refactoring.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'Documentation/hwmon/mcp3021.rst')
0 files changed, 0 insertions, 0 deletions