am7xxx-play: remove any usage of ENOTSUP
authorAntonio Ospite <ao2@ao2.it>
Tue, 27 Feb 2018 22:42:32 +0000 (23:42 +0100)
committerAntonio Ospite <ao2@ao2.it>
Tue, 27 Feb 2018 22:42:32 +0000 (23:42 +0100)
commit18978589ed6ae1ddef52ae892b2c224b545ec29a
tree34980e9de2f51d2167cc58aa3473fe0c79f49a75
parent627f4b2385f08222e7a38dec6066ac0c710a251b
am7xxx-play: remove any usage of ENOTSUP

There's really no need to use ENOTSUP here, the return value is not
checked against the specific value, but just for the sign.

Replacing it with EINVAL makes the code more aligned with the other
error paths and also allows to remove a conditional define.
examples/am7xxx-play.c