am7xxx: don't mention AM7XXX_DIRECTION_OUT in read_header()
authorAntonio Ospite <ospite@studenti.unina.it>
Wed, 14 Nov 2012 11:31:01 +0000 (12:31 +0100)
committerAntonio Ospite <ospite@studenti.unina.it>
Wed, 14 Nov 2012 14:33:19 +0000 (15:33 +0100)
commit5c988a910c5c32462da462263ea7cb63daecebbc
tree6d13e666faca03f6e6b12fa69e6ae15bcdef883b
parent2c897cad505d3ba27723dcff7252ff123d90ab53
am7xxx: don't mention AM7XXX_DIRECTION_OUT in read_header()

The validity check in read_header() looks for:

h->direction == AM7XXX_DIRECTION_IN

When this is false (direction is _not_equal_ to AM7XXX_DIRECTION_IN) it
cannot be said for sure that the direction field value is going to
really be AM7XXX_DIRECTION_OUT, technically the device may have put
anything there.

So, just report what happens don't try to overguess.
src/am7xxx.c