diff options
| author | BALATON Zoltan <balaton@eik.bme.hu> | 2024-05-13 01:28:05 +0200 |
|---|---|---|
| committer | Nicholas Piggin <npiggin@gmail.com> | 2024-05-24 09:43:12 +1000 |
| commit | e89b0629b99e3df96ef1c190139f77169c58d27b (patch) | |
| tree | 957a3c3aa21b4c3c9b2bb1e7dec7bd9701990155 /net/netmap.c | |
| parent | 581eea5d656b73c6532109f4ced4c73fd4e5fd47 (diff) | |
| download | focaccia-qemu-e89b0629b99e3df96ef1c190139f77169c58d27b.tar.gz focaccia-qemu-e89b0629b99e3df96ef1c190139f77169c58d27b.zip | |
target/ppc/mmu-hash32.c: Drop a local variable
In ppc_hash32_xlate() the value of need_prop is checked in two places but precalculating it does not help because when we reach the first check we always return and not reach the second place so the value will only be used once. We can drop the local variable and calculate it when needed, which makes these checks using it similar to other places with such checks. Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Diffstat (limited to 'net/netmap.c')
0 files changed, 0 insertions, 0 deletions