Skip to content

Commit

Permalink
vvfat: rename useless enumeration values
Browse files Browse the repository at this point in the history
MODE_FAKED and MODE_RENAMED are not and were never used.

Signed-off-by: Hervé Poussineau <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
  • Loading branch information
hpoussin authored and kevmw committed Jul 10, 2017
1 parent 5f5b29d commit ad05b31
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions block/vvfat.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,7 @@ typedef struct mapping_t {
union {
/* offset is
* - the offset in the file (in clusters) for a file, or
* - the next cluster of the directory for a directory, and
* - the address of the buffer for a faked entry
* - the next cluster of the directory for a directory
*/
struct {
uint32_t offset;
Expand All @@ -300,9 +299,13 @@ typedef struct mapping_t {
/* path contains the full path, i.e. it always starts with s->path */
char* path;

enum { MODE_UNDEFINED = 0, MODE_NORMAL = 1, MODE_MODIFIED = 2,
MODE_DIRECTORY = 4, MODE_FAKED = 8,
MODE_DELETED = 16, MODE_RENAMED = 32 } mode;
enum {
MODE_UNDEFINED = 0,
MODE_NORMAL = 1,
MODE_MODIFIED = 2,
MODE_DIRECTORY = 4,
MODE_DELETED = 8,
} mode;
int read_only;
} mapping_t;

Expand Down

0 comments on commit ad05b31

Please sign in to comment.