drm/radeon: fix formatting
Preparatory patch: patches to follow will touch a piece of code that had broken indentication, so fix it before touching it. Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com> Reviewed-by: Marek Olšák <maraeo@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
d201450435
commit
66b3543ef3
|
@ -2106,31 +2106,30 @@ int r100_cs_parse(struct radeon_cs_parser *p)
|
||||||
}
|
}
|
||||||
p->idx += pkt.count + 2;
|
p->idx += pkt.count + 2;
|
||||||
switch (pkt.type) {
|
switch (pkt.type) {
|
||||||
case PACKET_TYPE0:
|
case PACKET_TYPE0:
|
||||||
if (p->rdev->family >= CHIP_R200)
|
if (p->rdev->family >= CHIP_R200)
|
||||||
r = r100_cs_parse_packet0(p, &pkt,
|
r = r100_cs_parse_packet0(p, &pkt,
|
||||||
p->rdev->config.r100.reg_safe_bm,
|
p->rdev->config.r100.reg_safe_bm,
|
||||||
p->rdev->config.r100.reg_safe_bm_size,
|
p->rdev->config.r100.reg_safe_bm_size,
|
||||||
&r200_packet0_check);
|
&r200_packet0_check);
|
||||||
else
|
else
|
||||||
r = r100_cs_parse_packet0(p, &pkt,
|
r = r100_cs_parse_packet0(p, &pkt,
|
||||||
p->rdev->config.r100.reg_safe_bm,
|
p->rdev->config.r100.reg_safe_bm,
|
||||||
p->rdev->config.r100.reg_safe_bm_size,
|
p->rdev->config.r100.reg_safe_bm_size,
|
||||||
&r100_packet0_check);
|
&r100_packet0_check);
|
||||||
break;
|
break;
|
||||||
case PACKET_TYPE2:
|
case PACKET_TYPE2:
|
||||||
break;
|
break;
|
||||||
case PACKET_TYPE3:
|
case PACKET_TYPE3:
|
||||||
r = r100_packet3_check(p, &pkt);
|
r = r100_packet3_check(p, &pkt);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
DRM_ERROR("Unknown packet type %d !\n",
|
DRM_ERROR("Unknown packet type %d !\n",
|
||||||
pkt.type);
|
pkt.type);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
if (r) {
|
if (r)
|
||||||
return r;
|
return r;
|
||||||
}
|
|
||||||
} while (p->idx < p->chunks[p->chunk_ib_idx].length_dw);
|
} while (p->idx < p->chunks[p->chunk_ib_idx].length_dw);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue