[haiku-commits] Re: r36292 - haiku/trunk/src/add-ons/kernel/drivers/network/wlan/iprowifi3945/dev/wpi

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 16 Apr 2010 01:02:30 +0200

On 04/16/2010 12:56 AM, Colin Günther wrote:
>> Log:
>> * Added MSI support (might help with bug #5511).
>> * Fixed wrong return type from wpi_read_prom_data().
> What was wrong with the return type?

A uint16 cannot hold a status_t; even if POSIX error codes are usually
positive (at least on other operating systems like FreeBSD) you cannot
know if they stay in the 16 bit range (and you definitely shouldn't
expect it).

Since no one evaluated the result, it didn't matter much, anyway.


Other related posts: