Skip to content

Commit 82b9282

Browse files
finikorgcarlescufi
authored andcommitted
samples: socketpair: Remove unused error code
Remove unused variable. Signed-off-by: Andrei Emeltchenko <[email protected]>
1 parent 3cd5bd6 commit 82b9282

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

samples/net/sockets/socketpair/src/socketpair_example.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ int main(int argc, char *argv[])
110110
int r;
111111
int fd;
112112
int idx;
113-
int poll_r;
114113
size_t i;
115114
size_t num_active;
116115
char buf[32];
@@ -174,7 +173,7 @@ int main(int argc, char *argv[])
174173
break;
175174
}
176175

177-
poll_r = poll(fds, num_active, -1);
176+
(void)poll(fds, num_active, -1);
178177

179178
for (size_t i = 0; i < num_active; ++i) {
180179

0 commit comments

Comments
 (0)