[haiku-commits] haiku: hrev43442 - src/add-ons/accelerants/radeon_hd

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 9 Dec 2011 00:11:54 +0100 (CET)

hrev43442 adds 1 changeset to branch 'master'
old head: 36de623307c7a714fd1b6960728c878f5eb78f81
new head: 8c01b45a65603a60a32d4638a432d7f2aae2cdfc

----------------------------------------------------------------------------

8c01b45: Style fix, return B_ERROR instead of hacking together a neg. return 
code.

                          [ Alexander von Gluck IV <kallisti5@xxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev43442
Commit:      8c01b45a65603a60a32d4638a432d7f2aae2cdfc
URL:         http://cgit.haiku-os.org/haiku/commit/?id=8c01b45
Author:      Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
Date:        Thu Dec  8 23:11:22 2011 UTC

----------------------------------------------------------------------------

1 files changed, 3 insertions(+), 3 deletions(-)
src/add-ons/accelerants/radeon_hd/connector.cpp |    6 +++---

----------------------------------------------------------------------------

diff --git a/src/add-ons/accelerants/radeon_hd/connector.cpp 
b/src/add-ons/accelerants/radeon_hd/connector.cpp
index 68467f4..a1fc565 100644
--- a/src/add-ons/accelerants/radeon_hd/connector.cpp
+++ b/src/add-ons/accelerants/radeon_hd/connector.cpp
@@ -70,13 +70,13 @@ dp_aux_speak(uint8 connectorIndex, uint8 *send, int 
sendBytes,
        switch(args.v1.ucReplyStatus) {
                case 1:
                        ERROR("%s: dp_aux_ch timeout!\n", __func__);
-                       return -B_TIMED_OUT;
+                       return B_ERROR;
                case 2:
                        ERROR("%s: dp_aux_ch flags not zero!\n", __func__);
-                       return -B_BUSY;
+                       return B_ERROR;
                case 3:
                        ERROR("%s: dp_aux_ch error!\n", __func__);
-                       return -B_IO_ERROR;
+                       return B_ERROR;
        }
 
        int recvLength = args.v1.ucDataOutLen;


Other related posts:

  • » [haiku-commits] haiku: hrev43442 - src/add-ons/accelerants/radeon_hd - kallisti5