Skip to content
Commit c75b590d authored by Rusty Russell's avatar Rusty Russell
Browse files

module: fix redundant test.

[linux-4.5-rc4/kernel/module.c:1692]: (style) Redundant condition: attr.test.
'!attr.test || (attr.test && attr.test(mod))' is equivalent to '!attr.test ||
attr.test(mod)'

This code was added like this ten years ago, in c988d2b2


"modules: add version and srcversion to sysfs".

Reported-by: default avatarDavid Binderman <dcb314@hotmail.com>
Cc: Matt Domsch <Matt_Domsch@dell.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent bf262dce
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment