Remove unused local variable
Use enum for bank function return