block: Clean up some bad code in the vvfat driver
authorThomas Huth <thuth@redhat.com>
Wed, 13 Sep 2017 10:21:28 +0000 (12:21 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 26 Sep 2017 12:46:23 +0000 (14:46 +0200)
commit7a6ab45e19b615b9285b9cfa2bbc1fee012bc8d7
tree8143eb1352f7934f7ed41c7052ce2035f9ade0bc
parent43a5dc02fd6070827d5c4ff652b885219fa8cbe1
block: Clean up some bad code in the vvfat driver

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 <thuth@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vvfat.c