diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2021-11-02 22:16:43 +0900 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2021-11-04 21:04:25 +0900 |
commit | 6e195b0f7c8e50927fa31946369c22a0534ec7e2 (patch) | |
tree | 3ea5eedbf582fca37aacba19dbfc59ffa0df6ffe /net/9p/error.c | |
parent | b1843d23854aeae95ce92a3432bc1bea4cdbb2e7 (diff) | |
download | linux-6e195b0f7c8e50927fa31946369c22a0534ec7e2.tar.gz linux-6e195b0f7c8e50927fa31946369c22a0534ec7e2.tar.bz2 linux-6e195b0f7c8e50927fa31946369c22a0534ec7e2.zip |
9p: fix a bunch of checkpatch warnings
Sohaib Mohamed started a serie of tiny and incomplete checkpatch fixes but
seemingly stopped halfway -- take over and do most of it.
This is still missing net/9p/trans* and net/9p/protocol.c for a later
time...
Link: http://lkml.kernel.org/r/20211102134608.1588018-3-dominique.martinet@atmark-techno.com
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Diffstat (limited to 'net/9p/error.c')
-rw-r--r-- | net/9p/error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/9p/error.c b/net/9p/error.c index a962217fc158..8da744494b68 100644 --- a/net/9p/error.c +++ b/net/9p/error.c @@ -183,7 +183,7 @@ int p9_error_init(void) INIT_HLIST_HEAD(&hash_errmap[bucket]); /* load initial error map into hash table */ - for (c = errmap; c->name != NULL; c++) { + for (c = errmap; c->name; c++) { c->namelen = strlen(c->name); bucket = jhash(c->name, c->namelen, 0) % ERRHASHSZ; INIT_HLIST_NODE(&c->list); |