Loading drivers/net/sunhme.c +0 −14 Original line number Original line Diff line number Diff line Loading @@ -2568,14 +2568,10 @@ static void __init quattro_apply_ranges(struct quattro *qp, struct happy_meal *h */ */ static struct quattro * __init quattro_sbus_find(struct sbus_dev *goal_sdev) static struct quattro * __init quattro_sbus_find(struct sbus_dev *goal_sdev) { { struct sbus_bus *sbus; struct sbus_dev *sdev; struct sbus_dev *sdev; struct quattro *qp; struct quattro *qp; int i; int i; if (qfe_sbus_list == NULL) goto found; for (qp = qfe_sbus_list; qp != NULL; qp = qp->next) { for (qp = qfe_sbus_list; qp != NULL; qp = qp->next) { for (i = 0, sdev = qp->quattro_dev; for (i = 0, sdev = qp->quattro_dev; (sdev != NULL) && (i < 4); (sdev != NULL) && (i < 4); Loading @@ -2584,17 +2580,7 @@ static struct quattro * __init quattro_sbus_find(struct sbus_dev *goal_sdev) return qp; return qp; } } } } for_each_sbus(sbus) { for_each_sbusdev(sdev, sbus) { if (sdev == goal_sdev) goto found; } } /* Cannot find quattro parent, fail. */ return NULL; found: qp = kmalloc(sizeof(struct quattro), GFP_KERNEL); qp = kmalloc(sizeof(struct quattro), GFP_KERNEL); if (qp != NULL) { if (qp != NULL) { int i; int i; Loading Loading
drivers/net/sunhme.c +0 −14 Original line number Original line Diff line number Diff line Loading @@ -2568,14 +2568,10 @@ static void __init quattro_apply_ranges(struct quattro *qp, struct happy_meal *h */ */ static struct quattro * __init quattro_sbus_find(struct sbus_dev *goal_sdev) static struct quattro * __init quattro_sbus_find(struct sbus_dev *goal_sdev) { { struct sbus_bus *sbus; struct sbus_dev *sdev; struct sbus_dev *sdev; struct quattro *qp; struct quattro *qp; int i; int i; if (qfe_sbus_list == NULL) goto found; for (qp = qfe_sbus_list; qp != NULL; qp = qp->next) { for (qp = qfe_sbus_list; qp != NULL; qp = qp->next) { for (i = 0, sdev = qp->quattro_dev; for (i = 0, sdev = qp->quattro_dev; (sdev != NULL) && (i < 4); (sdev != NULL) && (i < 4); Loading @@ -2584,17 +2580,7 @@ static struct quattro * __init quattro_sbus_find(struct sbus_dev *goal_sdev) return qp; return qp; } } } } for_each_sbus(sbus) { for_each_sbusdev(sdev, sbus) { if (sdev == goal_sdev) goto found; } } /* Cannot find quattro parent, fail. */ return NULL; found: qp = kmalloc(sizeof(struct quattro), GFP_KERNEL); qp = kmalloc(sizeof(struct quattro), GFP_KERNEL); if (qp != NULL) { if (qp != NULL) { int i; int i; Loading