[clean-up] Remove some erronous uses of const

Not a real issue but the code is more readable and it removes the need for
casting by removing some const stuff that is not needed.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>