diff options
author | Ilija Hadzic <ihadzic@research.bell-labs.com> | 2013-01-02 18:27:39 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-01-31 16:24:41 -0500 |
commit | 66b3543ef38216bdaf529a207fb495c500eb98be (patch) | |
tree | 380cd93755d9d463f956d9e1fabde7565eb0f2ac | |
parent | d20145043524c4f28d090f5176cf9bf5cc7306c6 (diff) |
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>
-rw-r--r-- | drivers/gpu/drm/radeon/r100.c | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index 8ff7cac222dc..40c0318b1eef 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c | |||
@@ -2106,31 +2106,30 @@ int r100_cs_parse(struct radeon_cs_parser *p) | |||
2106 | } | 2106 | } |
2107 | p->idx += pkt.count + 2; | 2107 | p->idx += pkt.count + 2; |
2108 | switch (pkt.type) { | 2108 | switch (pkt.type) { |
2109 | case PACKET_TYPE0: | 2109 | case PACKET_TYPE0: |
2110 | if (p->rdev->family >= CHIP_R200) | 2110 | if (p->rdev->family >= CHIP_R200) |
2111 | r = r100_cs_parse_packet0(p, &pkt, | 2111 | r = r100_cs_parse_packet0(p, &pkt, |
2112 | p->rdev->config.r100.reg_safe_bm, | 2112 | p->rdev->config.r100.reg_safe_bm, |
2113 | p->rdev->config.r100.reg_safe_bm_size, | 2113 | p->rdev->config.r100.reg_safe_bm_size, |
2114 | &r200_packet0_check); | 2114 | &r200_packet0_check); |
2115 | else | 2115 | else |
2116 | r = r100_cs_parse_packet0(p, &pkt, | 2116 | r = r100_cs_parse_packet0(p, &pkt, |
2117 | p->rdev->config.r100.reg_safe_bm, | 2117 | p->rdev->config.r100.reg_safe_bm, |
2118 | p->rdev->config.r100.reg_safe_bm_size, | 2118 | p->rdev->config.r100.reg_safe_bm_size, |
2119 | &r100_packet0_check); | 2119 | &r100_packet0_check); |
2120 | break; | 2120 | break; |
2121 | case PACKET_TYPE2: | 2121 | case PACKET_TYPE2: |
2122 | break; | 2122 | break; |
2123 | case PACKET_TYPE3: | 2123 | case PACKET_TYPE3: |
2124 | r = r100_packet3_check(p, &pkt); | 2124 | r = r100_packet3_check(p, &pkt); |
2125 | break; | 2125 | break; |
2126 | default: | 2126 | default: |
2127 | DRM_ERROR("Unknown packet type %d !\n", | 2127 | DRM_ERROR("Unknown packet type %d !\n", |
2128 | pkt.type); | 2128 | pkt.type); |
2129 | return -EINVAL; | 2129 | return -EINVAL; |
2130 | } | 2130 | } |
2131 | if (r) { | 2131 | if (r) |
2132 | return r; | 2132 | return r; |
2133 | } | ||
2134 | } while (p->idx < p->chunks[p->chunk_ib_idx].length_dw); | 2133 | } while (p->idx < p->chunks[p->chunk_ib_idx].length_dw); |
2135 | return 0; | 2134 | return 0; |
2136 | } | 2135 | } |