diff options
| author | Dominique Martinet <asmadeus@codewreck.org> | 2025-10-31 10:40:07 +0300 |
|---|---|---|
| committer | Dominique Martinet <asmadeus@codewreck.org> | 2025-11-03 10:49:29 +0300 |
| commit | eeaf38a798aff6384983e5a0ac464d146de7ff55 (patch) | |
| tree | 82fc1d212475f87d55f7d60bb72a7841a59d9561 /include | |
| parent | e21d451a82f39e91b7635c4fc3ff5ac082873ec3 (diff) | |
| download | linux-eeaf38a798aff6384983e5a0ac464d146de7ff55.tar.xz | |
net/9p: cleanup: change p9_trans_module->def to bool
'->def' is only ever used as a true/false flag
Reported-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Message-ID: <20251103-v9fs_trans_def_bool-v1-1-f33dc7ed9e81@codewreck.org>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/9p/transport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/9p/transport.h b/include/net/9p/transport.h index f0981515148d..0aedabc9b7eb 100644 --- a/include/net/9p/transport.h +++ b/include/net/9p/transport.h @@ -46,7 +46,7 @@ struct p9_trans_module { char *name; /* name of transport */ int maxsize; /* max message size of transport */ bool pooled_rbuffers; - int def; /* this transport should be default */ + bool def; /* this transport should be default */ bool supports_vmalloc; /* can work with vmalloc'd buffers */ struct module *owner; int (*create)(struct p9_client *client, |
