hal: Clean up compilation warnings

Change-Id: I3857f565dd7a2f3ce3a1cbb783eb3d67fb024e3e