hw/block/pflash_cfi02: Remove pointless local variable
commit1eb27d692ead211ff19667c5447fe9701c9fd992
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sat, 18 May 2019 12:45:35 +0000 (18 14:45 +0200)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 2 Jul 2019 00:31:13 +0000 (2 02:31 +0200)
tree99f791e62a4c5b976c360cb5deb1164be5e0fd24
parent91d0231213629674c3a551d900c1b79a8f520caf
hw/block/pflash_cfi02: Remove pointless local variable

We can directly use pfl->total_len, remove the local 'chip_len'
variable.

Signed-off-by: Stephen Checkoway <stephen.checkoway@oberlin.edu>
Message-Id: <20190426162624.55977-6-stephen.checkoway@oberlin.edu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
[PMD: Extracted from bigger patch]
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/block/pflash_cfi02.c