coverity#704499-501 Division by zero

Change-Id: I5f082f10cb6822707a279d5b38ef2936ad2e5c41
coverity#704538-9 Division by zero

Change-Id: Ia77648c3e0442bb5e0a08d01bbd495c9d7c8bbf5
coverity#735602-3 Division by zero

Change-Id: I2da9857e4d526b60b3bf50e10ab180c493fb288f
coverity#735300-1 Unchecked return value

Change-Id: I9cb69643ba43adc76ef38db61da2b7c1c3d3e3c1
coverity#735340 Unchecked return value

Change-Id: I13df98f64ce505a08ba3e8b2582a17f5d202c4d1