提交 a0ccbe11 编写于 作者: sangshuduo's avatar sangshuduo

remove unused comparison with 0 as vid >=0 htons() return

上级 ec7e3665
......@@ -103,7 +103,7 @@ int vnodeProcessCreateMeterRequest(char *pMsg, int msgLen, SMgmtObj *pObj) {
pCreate = (SCreateMsg *)pMsg;
vid = htons(pCreate->vnode);
if (vid >= TSDB_MAX_VNODES || vid < 0) {
if (vid >= TSDB_MAX_VNODES) {
dError("vid:%d, vnode is out of range", vid);
code = TSDB_CODE_INVALID_VNODE_ID;
goto _over;
......@@ -139,7 +139,7 @@ int vnodeProcessAlterStreamRequest(char *pMsg, int msgLen, SMgmtObj *pObj) {
vid = htons(pAlter->vnode);
sid = htonl(pAlter->sid);
if (vid >= TSDB_MAX_VNODES || vid < 0) {
if (vid >= TSDB_MAX_VNODES) {
dError("vid:%d, vnode is out of range", vid);
code = TSDB_CODE_INVALID_VNODE_ID;
goto _over;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册