[PATCH v4 1/2] radeon: fix coding issues reported from sparse