[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH] block: Clean up some bad code in the vvfat driv
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-block] [PATCH] block: Clean up some bad code in the vvfat driver |
Date: |
Tue, 19 Sep 2017 10:06:25 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 13/09/2017 21:08, John Snow wrote:
>
>
> On 09/13/2017 06:21 AM, Thomas Huth wrote:
>> Remove the unnecessary home-grown redefinition of the assert() macro here,
>> and remove the unusable debug code at the end of the checkpoint() function.
>> The code there uses assert() with side-effects (assignment to the "mapping"
>> variable), which should be avoided. Looking more closely, it seems as it is
>> apparently also only usable for one certain directory layout (with a file
>> named USB.H in it) and thus is of no use for the rest of the world.
>>
>> Signed-off-by: Thomas Huth <address@hidden>
>
> Farewell, bitrot code.
>
> Reviewed-by: John Snow <address@hidden>
>
> Out of curiosity, I wonder ...
>
> address@hidden (foobar) ~/s/qemu> git grep '#if 0' | wc -l
> 320
$ git grep -c '#if 0' | sort -k2 --field-separator=: -n
...
hw/net/eepro100.c:21
target/ppc/cpu-models.h:76
whoa :)
Re: [Qemu-block] [PATCH] block: Clean up some bad code in the vvfat driver, Kevin Wolf, 2017/09/19