Skip to content

Commit 9f6298a

Browse files
braunudavem330
authored andcommitted
af_iucv: get rid of compile warning
-Wunused-but-set-variable generates compile warnings. The affected variables are removed. Signed-off-by: Ursula Braun <[email protected]> Signed-off-by: Frank Blaschka <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5db79c0 commit 9f6298a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

net/iucv/af_iucv.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ static int afiucv_pm_freeze(struct device *dev)
190190
*/
191191
static int afiucv_pm_restore_thaw(struct device *dev)
192192
{
193-
struct iucv_sock *iucv;
194193
struct sock *sk;
195194
struct hlist_node *node;
196195

@@ -199,7 +198,6 @@ static int afiucv_pm_restore_thaw(struct device *dev)
199198
#endif
200199
read_lock(&iucv_sk_list.lock);
201200
sk_for_each(sk, node, &iucv_sk_list.head) {
202-
iucv = iucv_sk(sk);
203201
switch (sk->sk_state) {
204202
case IUCV_CONNECTED:
205203
sk->sk_err = EPIPE;
@@ -381,7 +379,6 @@ static void iucv_sock_close(struct sock *sk)
381379
{
382380
unsigned char user_data[16];
383381
struct iucv_sock *iucv = iucv_sk(sk);
384-
int err;
385382
unsigned long timeo;
386383

387384
iucv_sock_clear_timer(sk);
@@ -394,8 +391,6 @@ static void iucv_sock_close(struct sock *sk)
394391

395392
case IUCV_CONNECTED:
396393
case IUCV_DISCONN:
397-
err = 0;
398-
399394
sk->sk_state = IUCV_CLOSING;
400395
sk->sk_state_change(sk);
401396

@@ -404,7 +399,7 @@ static void iucv_sock_close(struct sock *sk)
404399
timeo = sk->sk_lingertime;
405400
else
406401
timeo = IUCV_DISCONN_TIMEOUT;
407-
err = iucv_sock_wait(sk,
402+
iucv_sock_wait(sk,
408403
iucv_sock_in_state(sk, IUCV_CLOSED, 0),
409404
timeo);
410405
}
@@ -417,7 +412,7 @@ static void iucv_sock_close(struct sock *sk)
417412
low_nmcpy(user_data, iucv->src_name);
418413
high_nmcpy(user_data, iucv->dst_name);
419414
ASCEBC(user_data, sizeof(user_data));
420-
err = iucv_path_sever(iucv->path, user_data);
415+
iucv_path_sever(iucv->path, user_data);
421416
iucv_path_free(iucv->path);
422417
iucv->path = NULL;
423418
}

0 commit comments

Comments
 (0)