]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/tipc/log.c
tipc: nuke the delimit static inline function.
[mv-sheeva.git] / net / tipc / log.c
index 952c39f643e695427db25c8ea37db115e0519acd..895c6e530b0b9cbbceeb28911743cdf8ac2fcff0 100644 (file)
@@ -304,7 +304,7 @@ struct sk_buff *tipc_log_resize_cmd(const void *req_tlv_area, int req_tlv_space)
                return tipc_cfg_reply_error_string(TIPC_CFG_TLV_ERROR);
 
        value = ntohl(*(__be32 *)TLV_DATA(req_tlv_area));
-       if (value != delimit(value, 0, 32768))
+       if (value > 32768)
                return tipc_cfg_reply_error_string(TIPC_CFG_INVALID_VALUE
                                                   " (log size must be 0-32768)");
        if (tipc_log_resize(value))