forked from Ivasoft/openwrt
ar71xx: wrap long lines
(build errors has been fixed - juhosg) Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> SVN-Revision: 23977
This commit is contained in:
@@ -770,7 +770,8 @@ static struct ar7240sw *ar7240_probe(struct ag71xx *ag)
|
||||
|
||||
ver = (ctrl >> AR7240_MASK_CTRL_VERSION_S) & AR7240_MASK_CTRL_VERSION_M;
|
||||
if (ver != 1) {
|
||||
pr_err("%s: unsupported chip, ctrl=%08x\n", ag->dev->name, ctrl);
|
||||
pr_err("%s: unsupported chip, ctrl=%08x\n",
|
||||
ag->dev->name, ctrl);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -119,7 +119,8 @@ static int ag71xx_ring_alloc(struct ag71xx_ring *ring, unsigned int size)
|
||||
}
|
||||
|
||||
for (i = 0; i < size; i++) {
|
||||
ring->buf[i].desc = (struct ag71xx_desc *)&ring->descs_cpu[i * ring->desc_size];
|
||||
int idx = i * ring->desc_size;
|
||||
ring->buf[i].desc = (struct ag71xx_desc *)&ring->descs_cpu[idx];
|
||||
DBG("ag71xx: ring %p, desc %d at %p\n",
|
||||
ring, i, ring->buf[i].desc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user