net: dc2114x: check for apropriate command
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 25 Sep 2011 21:41:14 +0000 (21:41 +0000)
committerWolfgang Denk <wd@denx.de>
Fri, 21 Oct 2011 22:37:49 +0000 (00:37 +0200)
commitdf6a36fbef32cd7f27b9ce7da22ad16d0b4ed62c
tree78b5e5b5e8f77cd32d0d1c439d51268fd80aaf11
parentb0e55d5b5afae64d27c421243e5efbcb3e818649
net: dc2114x: check for apropriate command

The code had two paths depending on whether the card was to be
accessed from plain memory or the IO region. However the error
path checks whether IO region was obtained - twice. Fix up the
error path according to the probable intention.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/net/dc2114x.c