ALSA: hda - Fix memory leaks at error path in patch_cirrus.c
[pandora-kernel.git] / net / rds / tcp_connect.c
index c519939..af95c8e 100644 (file)
@@ -45,7 +45,7 @@ void rds_tcp_state_change(struct sock *sk)
 
        read_lock_bh(&sk->sk_callback_lock);
        conn = sk->sk_user_data;
-       if (conn == NULL) {
+       if (!conn) {
                state_change = sk->sk_state_change;
                goto out;
        }