ucc_geth: Cleanup repetitive ucc_geth_memclean() calls
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Thu, 18 Dec 2008 08:23:31 +0000 (08:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Dec 2008 06:50:52 +0000 (22:50 -0800)
commitba574696a34eb518979e742b35ccd30dec284583
tree916dc12340b8599ea1d516977bab99158d57a6fe
parent67c2fb8ff0eda3cee95954a1dd245c3ce1a10486
ucc_geth: Cleanup repetitive ucc_geth_memclean() calls

No need to call ucc_geth_memclean() so many times, just check for
errors in ucc_geth_open(), and call ucc_geth_stop() in case of errors.

The ucc_geth_stop() may be called anytime and will do the right thing.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ucc_geth.c