[vlc-commits] d3d11_fmt: remove useless else after return

Steve Lhomme git at videolan.org
Wed Dec 19 16:53:44 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Dec 19 11:07:54 2018 +0100| [a787b06f830c0a2bc381ba3adf400dd92499297f] | committer: Steve Lhomme

d3d11_fmt: remove useless else after return

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a787b06f830c0a2bc381ba3adf400dd92499297f
---

 modules/video_chroma/d3d11_fmt.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/video_chroma/d3d11_fmt.c b/modules/video_chroma/d3d11_fmt.c
index 815f62b1cf..6f4f7e946d 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -429,28 +429,28 @@ int D3D11CheckDriverVersion(d3d11_device_t *d3d_dev, UINT vendorId, const struct
     {
         if (d3d_dev->WDDM.wddm > min_ver->wddm)
             return VLC_SUCCESS;
-        else if (d3d_dev->WDDM.wddm != min_ver->wddm)
+        if (d3d_dev->WDDM.wddm != min_ver->wddm)
             return VLC_EGENERIC;
     }
     if (min_ver->d3d_features)
     {
         if (d3d_dev->WDDM.d3d_features > min_ver->d3d_features)
             return VLC_SUCCESS;
-        else if (d3d_dev->WDDM.d3d_features != min_ver->d3d_features)
+        if (d3d_dev->WDDM.d3d_features != min_ver->d3d_features)
             return VLC_EGENERIC;
     }
     if (min_ver->revision)
     {
         if (d3d_dev->WDDM.revision > min_ver->revision)
             return VLC_SUCCESS;
-        else if (d3d_dev->WDDM.revision != min_ver->revision)
+        if (d3d_dev->WDDM.revision != min_ver->revision)
             return VLC_EGENERIC;
     }
     if (min_ver->build)
     {
         if (d3d_dev->WDDM.build > min_ver->build)
             return VLC_SUCCESS;
-        else if (d3d_dev->WDDM.build != min_ver->build)
+        if (d3d_dev->WDDM.build != min_ver->build)
             return VLC_EGENERIC;
     }
     return VLC_SUCCESS;



More information about the vlc-commits mailing list