diff options
| author | 2017-09-22 12:46:44 +0900 | |
|---|---|---|
| committer | 2017-09-22 09:04:31 +0200 | |
| commit | 8e4cbf7f0a55a235fdd8c088da1259b9fe8e9393 (patch) | |
| tree | 48433555bfdd69bb04b875dbfe985bd8ce4f5c95 /include/linux/timerqueue.h | |
| parent | mtd: nand: denali: clean up macros with <linux/bitfield.h> (diff) | |
mtd: nand: denali: use more FIELD_PREP / FIELD_GET where appropriate
In several places in this driver, the register fields are retrieved
as follows:
val = reg & FOO_MASK;
Then, modified as follows:
reg &= ~FOO_MASK;
reg |= val;
This code relies on its shift is 0, which we will never know until
we check the definition of FOO_MASK. Use FIELD_PREP / FIELD_GET
where appropriate.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
