net/ncsi: Don't mark configured channels inactive
[linux-2.6-microblaze.git] / net / ncsi / ncsi-manage.c
index b8b4e76..b9de5b7 100644 (file)
@@ -916,12 +916,11 @@ static void ncsi_configure_channel(struct ncsi_dev_priv *ndp)
                        break;
                }
 
+               nc->state = NCSI_CHANNEL_ACTIVE;
                if (nc->modes[NCSI_MODE_LINK].data[2] & 0x1) {
                        hot_nc = nc;
-                       nc->state = NCSI_CHANNEL_ACTIVE;
                } else {
                        hot_nc = NULL;
-                       nc->state = NCSI_CHANNEL_INACTIVE;
                        netdev_dbg(ndp->ndev.dev,
                                   "NCSI: channel %u link down after config\n",
                                   nc->id);