mirror of
https://github.com/S3NEO/android_kernel_samsung_msm8226.git
synced 2024-11-07 03:47:13 +00:00
af_iucv: get rid of compile warning
-Wunused-but-set-variable generates compile warnings. The affected variables are removed. Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5db79c0679
commit
9f6298a6ca
1 changed files with 2 additions and 7 deletions
|
@ -190,7 +190,6 @@ static int afiucv_pm_freeze(struct device *dev)
|
||||||
*/
|
*/
|
||||||
static int afiucv_pm_restore_thaw(struct device *dev)
|
static int afiucv_pm_restore_thaw(struct device *dev)
|
||||||
{
|
{
|
||||||
struct iucv_sock *iucv;
|
|
||||||
struct sock *sk;
|
struct sock *sk;
|
||||||
struct hlist_node *node;
|
struct hlist_node *node;
|
||||||
|
|
||||||
|
@ -199,7 +198,6 @@ static int afiucv_pm_restore_thaw(struct device *dev)
|
||||||
#endif
|
#endif
|
||||||
read_lock(&iucv_sk_list.lock);
|
read_lock(&iucv_sk_list.lock);
|
||||||
sk_for_each(sk, node, &iucv_sk_list.head) {
|
sk_for_each(sk, node, &iucv_sk_list.head) {
|
||||||
iucv = iucv_sk(sk);
|
|
||||||
switch (sk->sk_state) {
|
switch (sk->sk_state) {
|
||||||
case IUCV_CONNECTED:
|
case IUCV_CONNECTED:
|
||||||
sk->sk_err = EPIPE;
|
sk->sk_err = EPIPE;
|
||||||
|
@ -381,7 +379,6 @@ static void iucv_sock_close(struct sock *sk)
|
||||||
{
|
{
|
||||||
unsigned char user_data[16];
|
unsigned char user_data[16];
|
||||||
struct iucv_sock *iucv = iucv_sk(sk);
|
struct iucv_sock *iucv = iucv_sk(sk);
|
||||||
int err;
|
|
||||||
unsigned long timeo;
|
unsigned long timeo;
|
||||||
|
|
||||||
iucv_sock_clear_timer(sk);
|
iucv_sock_clear_timer(sk);
|
||||||
|
@ -394,8 +391,6 @@ static void iucv_sock_close(struct sock *sk)
|
||||||
|
|
||||||
case IUCV_CONNECTED:
|
case IUCV_CONNECTED:
|
||||||
case IUCV_DISCONN:
|
case IUCV_DISCONN:
|
||||||
err = 0;
|
|
||||||
|
|
||||||
sk->sk_state = IUCV_CLOSING;
|
sk->sk_state = IUCV_CLOSING;
|
||||||
sk->sk_state_change(sk);
|
sk->sk_state_change(sk);
|
||||||
|
|
||||||
|
@ -404,7 +399,7 @@ static void iucv_sock_close(struct sock *sk)
|
||||||
timeo = sk->sk_lingertime;
|
timeo = sk->sk_lingertime;
|
||||||
else
|
else
|
||||||
timeo = IUCV_DISCONN_TIMEOUT;
|
timeo = IUCV_DISCONN_TIMEOUT;
|
||||||
err = iucv_sock_wait(sk,
|
iucv_sock_wait(sk,
|
||||||
iucv_sock_in_state(sk, IUCV_CLOSED, 0),
|
iucv_sock_in_state(sk, IUCV_CLOSED, 0),
|
||||||
timeo);
|
timeo);
|
||||||
}
|
}
|
||||||
|
@ -417,7 +412,7 @@ static void iucv_sock_close(struct sock *sk)
|
||||||
low_nmcpy(user_data, iucv->src_name);
|
low_nmcpy(user_data, iucv->src_name);
|
||||||
high_nmcpy(user_data, iucv->dst_name);
|
high_nmcpy(user_data, iucv->dst_name);
|
||||||
ASCEBC(user_data, sizeof(user_data));
|
ASCEBC(user_data, sizeof(user_data));
|
||||||
err = iucv_path_sever(iucv->path, user_data);
|
iucv_path_sever(iucv->path, user_data);
|
||||||
iucv_path_free(iucv->path);
|
iucv_path_free(iucv->path);
|
||||||
iucv->path = NULL;
|
iucv->path = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue