i965: Warning fix

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Eric Anholt 2013-12-23 16:08:53 -08:00 committed by Kenneth Graunke
parent 242ca9acb4
commit 7db56ddee0

View file

@ -108,8 +108,6 @@ unsigned
brw_reg_type_to_hw_type(const struct brw_context *brw,
enum brw_reg_type type, unsigned file)
{
bool imm = file == BRW_IMMEDIATE_VALUE;
if (file == BRW_IMMEDIATE_VALUE) {
const static int imm_hw_types[] = {
[BRW_REGISTER_TYPE_UD] = BRW_HW_REG_TYPE_UD,