video_shell: Remove else statement 45/320645/1
authorSeunghun Lee <shiin.lee@samsung.com>
Tue, 25 Feb 2025 07:43:15 +0000 (16:43 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 5 Mar 2025 08:32:33 +0000 (17:32 +0900)
By assigning default value, else statement can be removed.

Change-Id: Ieb81ab15c3cc0365478e09c6482f0a84caefe008

src/bin/server/e_video_shell.c

index 11078d9682c5a13429ff6dc91e6ac30f9e71e80d..00b24cb52f2108ff902bc903245aac3a87a40b01 100644 (file)
@@ -1026,12 +1026,10 @@ _letter_box_geometry_calc(Eina_Rectangle *in_out, double ratio_width, double rat
 {
    int fit_width;
    int fit_height;
-   double fw, fh, ssh, max;
+   double fw, fh, max, ssh = 1.0;
 
    if (ratio_width != -1.0)
      ssh = ratio_height / ratio_width;
-   else
-     ssh = 1;
 
    fw = 1 / (double)in_out->w;
    fh = ssh / (double)in_out->h;