dds_set_scale: simplify looping over device attrs

Signed-off-by: Tim Harder <timothy.harder@analog.com>