aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/vboxvideo/modesetting.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-10-18 17:03:30 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-07 12:27:33 +0100
commit685bb884e0a42b917fecb25ca81a6407f391c8ec (patch)
tree11e50e2bd469c747a7178512e49fec84e6a74759 /drivers/staging/vboxvideo/modesetting.c
parentstaging: vboxvideo: Keep old mode when disable crtc (diff)
downloadlinux-dev-685bb884e0a42b917fecb25ca81a6407f391c8ec.tar.xz
linux-dev-685bb884e0a42b917fecb25ca81a6407f391c8ec.zip
staging: vboxvideo: Drop duplicate vbox_err.h file
Switch to the more complete vbox_err.h file from include/linux which got added with the merging of the vboxguest driver. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vboxvideo/modesetting.c')
-rw-r--r--drivers/staging/vboxvideo/modesetting.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/vboxvideo/modesetting.c b/drivers/staging/vboxvideo/modesetting.c
index 7616b8aab23a..e49c2c779726 100644
--- a/drivers/staging/vboxvideo/modesetting.c
+++ b/drivers/staging/vboxvideo/modesetting.c
@@ -20,8 +20,8 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
+#include <linux/vbox_err.h>
#include "vbox_drv.h"
-#include "vbox_err.h"
#include "vboxvideo_guest.h"
#include "vboxvideo_vbe.h"
#include "hgsmi_channels.h"
@@ -130,7 +130,7 @@ int hgsmi_get_mode_hints(struct gen_pool *ctx, unsigned int screens,
hgsmi_buffer_submit(ctx, p);
- if (RT_FAILURE(p->rc)) {
+ if (p->rc < 0) {
hgsmi_buffer_free(ctx, p);
return -EIO;
}