Commit 17695d7
nfsd: Replace open-coded conversion of bytes to hex
Since the Linux kernel's sprintf() has conversion to hex built-in via
"%*phN", delete md5_to_hex() and just use that. Also add an explicit
array bound to the dname parameter of nfs4_make_rec_clidname() to make
its size clear. No functional change.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>1 parent 6ecdfd7 commit 17695d7
1 file changed
Lines changed: 2 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | 95 | | |
110 | | - | |
| 96 | + | |
111 | 97 | | |
112 | 98 | | |
113 | 99 | | |
| |||
133 | 119 | | |
134 | 120 | | |
135 | 121 | | |
136 | | - | |
| 122 | + | |
137 | 123 | | |
138 | 124 | | |
139 | 125 | | |
| |||
0 commit comments