It means that if you give nothing, then you will get nothing. In this case, King Lear thinks that Cordelia is refusing to "give" him the love he believes he deserves and that he thinks he's receiving from his other two daughters. In return, she is banished.