Remove redundant casts to void

...leftovers from de02d221e104f74bfa595d5e6c41248093c640f3 "printfs in comments"

Change-Id: I0125ac2b5ea0b4450e8f707f980959443a6c4d27
Fix *_component_getFactory function type

Change-Id: If66efdb6a00c383ba72898f601ff3d674e153704