a typo error

iput(iput) is a typo error, 

also since ip is null, 
it's better return directly.
so remove iput(ip);