jehanne/sys/src/kern/port/umem
Giacomo Tesio 0b8a66f877 kernel: umem: fix img_get macro
The img_get macro used to subtract 1 to the argument provided before
computing the porinter to the image. I can't remember why it did so.

However the expression was wrong.

Coverity found the issue:

	Operands don't affect result (CONSTANT_EXPRESSION_RESULT)
	CID:	155616, 155606, 155598, 155597, 155596, 155587,
		155580, 155578, 155577, 155576, 155568, 155566

Simply removing the subtraction seems the obvious fix.
2017-08-15 00:38:09 +02:00
..
images.c kernel: umem: fix img_get macro 2017-08-15 00:38:09 +02:00
internals.h kernel: deep refactoring and cleanup 2017-08-11 03:18:32 +02:00
pages.c kernel: deep refactoring and cleanup 2017-08-11 03:18:32 +02:00
raw.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
segments.c kernel: deep refactoring and cleanup 2017-08-11 03:18:32 +02:00
test.c libc: introduce "jehanne_" namespace 2017-04-19 23:48:21 +02:00
umem.h kernel: deep refactoring and cleanup 2017-08-11 03:18:32 +02:00