ANDROID: qtaguid: remove unnecessary checkes.
authorHyunki Koo <hyunki00.koo@samsung.com>
Fri, 6 Apr 2018 04:33:30 +0000 (13:33 +0900)
committerYoungmin Nam <youngmin.nam@samsung.com>
Thu, 24 May 2018 08:26:22 +0000 (17:26 +0900)
This removes some unnecessary checkes to get rid of
-Werror,-Wpointer-bool-conversion error

Change-Id: I8ce82d5c5761456055cc9c53d50ca9eee19d8660
signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>

net/netfilter/xt_qtaguid.c

index cd7c34b4522135df6406e5c35433526025e6672b..8a50bb2bae0314de73a31ffcf51faaaff19c400b 100644 (file)
@@ -1194,11 +1194,13 @@ static void get_dev_and_dir(const struct sk_buff *skb,
                       parst->hook, __func__);
                BUG();
        }
+#if 0
        if (unlikely(!(*el_dev)->name)) {
                pr_err("qtaguid[%d]: %s(): no dev->name?!!\n",
                       parst->hook, __func__);
                BUG();
        }
+#endif
        if (skb->dev && *el_dev != skb->dev) {
                MT_DEBUG("qtaguid[%d]: skb->dev=%p %s vs par->%s=%p %s\n",
                         parst->hook, skb->dev, skb->dev->name,