IBM (NYSE:IBM) just reported results for the second quarter of 2014. In after-market trading, IBM shares rose 2% at first, but then reversed course to a 1.6% drop.

In the second quarter, revenue fell 2% year over year to land at $24.4 billion. On the other hand, adjusted earnings rose 34%, to $4.32 per diluted share. Both figures were slightly ahead of analyst projections.

Sales held steady year over year in the software and services divisions. Hardware sales declined 11%, while financing revenues increased by 4%. Within the hardware segment, System Z mainframe sales fell 1%, while Power-based server revenue plunged 28% lower. IBM's gross margin increased 40 basis points, to 49.3%, as the revenue mix shifted into higher-margin segments.

In a prepared statement, IBM CEO Ginni Rometty highlighted the progress on her company's transforming business model. "We performed well in our strategic imperatives around cloud, big data and analytics, security and mobile," Rometty said.

Looking ahead, IBM continued to expect non-GAAP full-year earnings of at least $18.00 per diluted share, unchanged from projections made in the first-quarter report.

Anders Bylund has no position in any stocks mentioned. The Motley Fool recommends Apple. The Motley Fool owns shares of Apple and International Business Machines. Try any of our Foolish newsletter services free for 30 days.

We Fools may not all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy.