net: ipv4: Move ip_options_fragment() out of loop
[linux-2.6-microblaze.git] / net / 6lowpan / debugfs.c
index 1c140af..600b956 100644 (file)
@@ -170,7 +170,8 @@ static void lowpan_dev_debugfs_ctx_init(struct net_device *dev,
        struct dentry *root;
        char buf[32];
 
-       WARN_ON_ONCE(id > LOWPAN_IPHC_CTX_TABLE_SIZE);
+       if (WARN_ON_ONCE(id >= LOWPAN_IPHC_CTX_TABLE_SIZE))
+               return;
 
        sprintf(buf, "%d", id);