diff options
author | Harshvardhan Jha <[email protected]> | 2021-07-27 05:37:10 +0530 |
---|---|---|
committer | Dominique Martinet <[email protected]> | 2021-07-27 23:01:16 +0900 |
commit | 732b33d0dbf17e9483f0b50385bf606f724f50a2 (patch) | |
tree | cdccce2108b4572eea0f0d37cc278adff173a009 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | f997ea3b7afc108eb9761f321b57de2d089c7c48 (diff) |
9p/xen: Fix end of loop tests for list_for_each_entry
This patch addresses the following problems:
- priv can never be NULL, so this part of the check is useless
- if the loop ran through the whole list, priv->client is invalid and
it is more appropriate and sufficient to check for the end of
list_for_each_entry loop condition.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Harshvardhan Jha <[email protected]>
Reviewed-by: Stefano Stabellini <[email protected]>
Tested-by: Stefano Stabellini <[email protected]>
Cc: <[email protected]>
Signed-off-by: Dominique Martinet <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions