remove duplicate code for leading dimension argument validation
remove duplicate code for leading dimension argument validation

kknox/rocBLAS,kknox/rocBLAS,guacamoleo/rocBLAS,guacamoleo/rocBLAS,kknox/rocBLAS,kknox/rocBLAS,guacamoleo/rocBLAS,guacamoleo/rocBLAS