The technology company known by many consumers for its printers and computers unexpectedly released its fiscal second quarter earnings early.