Bank of America reported better-than-expected earnings Wednesday but shares fell as investors worry that mortgage problems may continue to plague the bank.