Date: Wed, 7 May 2025 11:50:31 GMT From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 033e97bababe - stable/14 - LinuxKPI: style Message-ID: <202505071150.547BoVq0089220@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=033e97bababed3fc6b4f183d8a0969598fa52d05 commit 033e97bababed3fc6b4f183d8a0969598fa52d05 Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2025-05-04 19:52:11 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2025-05-07 08:52:14 +0000 LinuxKPI: style Check results of non-bool to be != 0. No functional changes intended. Sponsored by: The FreeBSD Foundation Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D50158 (cherry picked from commit 76b66ac45ea804f23ffb35712b0ceaa98864c06f) --- sys/compat/linuxkpi/common/src/linux_kobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/src/linux_kobject.c b/sys/compat/linuxkpi/common/src/linux_kobject.c index ddd0a58660f1..8e71b5d69073 100644 --- a/sys/compat/linuxkpi/common/src/linux_kobject.c +++ b/sys/compat/linuxkpi/common/src/linux_kobject.c @@ -114,10 +114,10 @@ kobject_add_complete(struct kobject *kobj, struct kobject *parent) for (attr = t->default_attrs; *attr != NULL; attr++) { error = sysfs_create_file(kobj, *attr); - if (error) + if (error != 0) break; } - if (error) + if (error != 0) sysfs_remove_dir(kobj); } return (error);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202505071150.547BoVq0089220>
