usb: core : hub: Fix BOS 'NULL pointer' kernel panic
[firefly-linux-kernel-4.4.55.git] / ipc / msgutil.c
index 71f448e5e927aed0ccd8f5af24a928e82cfe616f..ed81aafd239263c7523db5f7ae2983770fea06cb 100644 (file)
@@ -123,7 +123,6 @@ struct msg_msg *copy_msg(struct msg_msg *src, struct msg_msg *dst)
        size_t len = src->m_ts;
        size_t alen;
 
-       WARN_ON(dst == NULL);
        if (src->m_ts > dst->m_ts)
                return ERR_PTR(-EINVAL);