Refactoring: use set_bits() in set_fs function

This commit is contained in:
Vadim Kaushan 2019-03-28 17:59:07 +03:00
parent 5ef90e3189
commit 9bb3b5803c
No known key found for this signature in database
GPG Key ID: A501C5DF67C05C4E
1 changed files with 1 additions and 2 deletions

View File

@ -183,7 +183,6 @@ pub unsafe fn set_mpp(mpp: MPP) {
#[inline]
pub unsafe fn set_fs(fs: FS) {
let mut value = _read();
value &= !(0b11 << 13);
value |= (fs as usize) << 13;
value.set_bits(13..15, fs as usize);
_write(value);
}