diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2018-06-05 13:25:45 +0300 |
---|---|---|
committer | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2018-07-18 14:27:22 +0300 |
commit | ac2409a521f7ec5978fd582567398d19f4a2fdbd (patch) | |
tree | 11c611f2780e7d717c5adb54cdd3807eaef59e86 /lib/rational.c | |
parent | dba31ee759417ef1a952e929524b0cca1751c036 (diff) | |
download | linux-ac2409a521f7ec5978fd582567398d19f4a2fdbd.tar.xz |
integrity: silence warning when CONFIG_SECURITYFS is not enabled
When CONFIG_SECURITYFS is not enabled, securityfs_create_dir returns
-ENODEV which throws the following error:
"Unable to create integrity sysfs dir: -19"
However, if the feature is disabled, it can't be warning and hence
we need to silence the error. This patch checks for the error -ENODEV
which is returned when CONFIG_SECURITYFS is disabled to stop the error
being thrown.
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Matthew Garrett <mjg59@google.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'lib/rational.c')
0 files changed, 0 insertions, 0 deletions