# \[PATCH\] \[POWERPC\] assign correct variable

- From: Stephen Rothwell \<hidden\>
- Date: 2007-05-11 05:37:44 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2007/05/9420138
- Thread: https://ratatoskr.run/linuxppc-dev/2007/05/9420138/t.md

```text
This case will never be hit, but it should be correct anyway.

Signed-off-by: Stephen Rothwell <redacted>
---
 arch/powerpc/mm/hash_native_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --git a/arch/powerpc/mm/hash_native_64.c b/arch/powerpc/mm/hash_native_64.c
index 7d722ee..59502c3 100644
--- a/arch/powerpc/mm/hash_native_64.c
+++ b/arch/powerpc/mm/hash_native_64.c
@@ -395,7 +395,7 @@ static void hpte_decode(hpte_t *hpte, unsigned long slot,
 			vpi = (vsid ^ (vsid << 25) ^ pteg) & htab_hash_mask;
 			break;
 		default:
-			avpn = vpi = psize = 0;
+			avpn = vpi = size = 0;
 		}
 		avpn |= (vpi << mmu_psize_defs[size].shift);
 	}
-- 
1.5.1.4
```
