Revert "nvmem: core: Fix msb clearing bits"
Revert to reduce upstream merge conflicts.
This reverts commit f54b298454.
Change-Id: Ic3ea0d784e2fd8beaa339561b0bed3d457eee047
This commit is contained in:
@@ -900,7 +900,6 @@ static void nvmem_shift_read_buffer_in_place(struct nvmem_cell *cell, void *buf)
|
|||||||
*p-- = 0;
|
*p-- = 0;
|
||||||
|
|
||||||
/* clear msb bits if any leftover in the last byte */
|
/* clear msb bits if any leftover in the last byte */
|
||||||
if (cell->nbits%BITS_PER_BYTE)
|
|
||||||
*p &= GENMASK((cell->nbits%BITS_PER_BYTE) - 1, 0);
|
*p &= GENMASK((cell->nbits%BITS_PER_BYTE) - 1, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user