diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c
index 90c168307eb..83e860209ef 100644
--- a/dlls/mshtml/nsio.c
+++ b/dlls/mshtml/nsio.c
@@ -195,9 +195,6 @@ static nsresult NSAPI nsChannel_QueryInterface(nsIHttpChannel *iface, nsIIDRef r
return NS_OK;
}
-
- if(This->channel)
- return nsIChannel_QueryInterface(This->channel, riid, result);
return NS_NOINTERFACE;
}