Skip to content

Commit

Permalink
rxrpc: Fix a warning
Browse files Browse the repository at this point in the history
Fix a warning due to an uninitialised variable.

le included from ../fs/afs/fs_probe.c:11:
../fs/afs/fs_probe.c: In function 'afs_fileserver_probe_result':
../fs/afs/internal.h:1453:2: warning: 'rtt_us' may be used uninitialized in this function [-Wmaybe-uninitialized]
 1453 |  printk("[%-6.6s] "FMT"\n", current->comm ,##__VA_ARGS__)
      |  ^~~~~~
../fs/afs/fs_probe.c:35:15: note: 'rtt_us' was declared here

Signed-off-by: David Howells <[email protected]>
  • Loading branch information
dhowells committed May 22, 2020
1 parent 5a73015 commit 8a1d24e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/afs/fs_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void afs_fileserver_probe_result(struct afs_call *call)
struct afs_server *server = call->server;
unsigned int server_index = call->server_index;
unsigned int index = call->addr_ix;
unsigned int rtt_us;
unsigned int rtt_us = 0;
bool have_result = false;
int ret = call->error;

Expand Down

0 comments on commit 8a1d24e

Please sign in to comment.