CC drivers/mtd/maps/
dc21285.o
drivers/mtd/maps/
dc21285.c: In function `dc21285_copy_to_32':
drivers/mtd/maps/
dc21285.c:113: error: invalid lvalue in increment
drivers/mtd/maps/
dc21285.c: In function `dc21285_copy_to_16':
drivers/mtd/maps/
dc21285.c:124: error: invalid lvalue in increment
drivers/mtd/maps/
dc21285.c: In function `dc21285_copy_to_8':
drivers/mtd/maps/
dc21285.c:134: error: invalid lvalue in increment
make[3]: *** [drivers/mtd/maps/
dc21285.o] Error 1
Signed-off-by: Martin Michlmayr <tbm@cyrius.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
{
while (len > 0) {
map_word d;
{
while (len > 0) {
map_word d;
- d.x[0] = *((uint32_t*)from)++;
+ d.x[0] = *((uint32_t*)from);
dc21285_write32(map, d, to);
dc21285_write32(map, d, to);
{
while (len > 0) {
map_word d;
{
while (len > 0) {
map_word d;
- d.x[0] = *((uint16_t*)from)++;
+ d.x[0] = *((uint16_t*)from);
dc21285_write16(map, d, to);
dc21285_write16(map, d, to);
static void dc21285_copy_to_8(struct map_info *map, unsigned long to, const void *from, ssize_t len)
{
map_word d;
static void dc21285_copy_to_8(struct map_info *map, unsigned long to, const void *from, ssize_t len)
{
map_word d;
- d.x[0] = *((uint8_t*)from)++;
+ d.x[0] = *((uint8_t*)from);
dc21285_write8(map, d, to);
dc21285_write8(map, d, to);