VFS - dev_style_asyn()

- dev_style_asyn() tests whether a device is asynchronous

 - simplifies code and helps readability
This commit is contained in:
Tomas Hruby
2012-03-02 15:44:47 +00:00
parent 35eb88461d
commit 369a12704f
2 changed files with 6 additions and 5 deletions
+3
View File
@@ -8,6 +8,9 @@ enum dev_style { STYLE_NDEV, STYLE_DEV, STYLE_DEVA, STYLE_TTY, STYLE_CTTY,
STYLE_CLONE, STYLE_CLONE_A };
#define IS_DEV_STYLE(s) (s>=STYLE_NDEV && s<=STYLE_CLONE_A)
#define dev_style_asyn(devstyle) ((devstyle) == STYLE_DEVA || \
(devstyle) == STYLE_CLONE_A)
/*===========================================================================*
* Major and minor device numbers *
*===========================================================================*/