Commit 2e9319d
committed
lkl: lib: remove dead code
Remove dead code caught by LLVM. Fixes the following warnings:
lib/net.c:44:20: warning: unused function 'set_sockaddr' [-Wunused-function]
static inline void set_sockaddr(struct lkl_sockaddr_in *sin, unsigned int addr,
lib/config.c:431:16: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable]
int ret = -1, bytes_read = 0;
Signed-off-by: Octavian Purdila <tavip@google.com>1 parent a96c2b3 commit 2e9319d
2 files changed
Lines changed: 2 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
| 431 | + | |
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
| 446 | + | |
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 44 | | |
53 | 45 | | |
54 | 46 | | |
| |||
0 commit comments