MAINT: linalg: some more clean up in norm: 'nd' was defined but not used