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