1. 29 Sep, 2018 1 commit
    • Hans de Goede's avatar
      staging: vboxvideo: Cleanup vbox_set_up_input_mapping() · 8568209b
      Hans de Goede authored
      This cleanups 2 things:
      
      1) The first time we loop over the crtc-s, to compare framebuffers, fb1 may
      get set to NULL by the fb1 = CRTC_FB(crtci); statement and then we call
      to_vbox_framebuffer() on it. The result of this call is only used for
      an address comparison, so we don't end up dereferencing the bad pointer,
      but still it is better to not do this.
      
      2) Since we already figure out the first crtc with a fb in the first loop
      and store that in fb1, there is no need to loop over the crtc-s again just
      to find the first crtc with a fb again.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8568209b
  2. 28 Sep, 2018 39 commits