From: Lars Ingebrigtsen Date: Sat, 15 Jul 2017 01:21:07 +0000 (+0200) Subject: src/image.c (compute_image_size): Remove superfluous checks. X-Git-Tag: emacs-26.0.90~518^2~101 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=511fe21b88f7468a5232434b556f886fa985a5aa;p=emacs.git src/image.c (compute_image_size): Remove superfluous checks. * src/image.c (compute_image_size): Remove superfluous checks. --- diff --git a/src/image.c b/src/image.c index 69a529e8c35..76a19a68b0d 100644 --- a/src/image.c +++ b/src/image.c @@ -8129,10 +8129,10 @@ compute_image_size (size_t width, size_t height, width = width * scale; height = height * scale; - if (desired_width != -1 && desired_height == -1) + if (desired_width != -1) /* Width known, calculate height. */ desired_height = scale_image_size (desired_width, width, height); - else if (desired_width == -1 && desired_height != -1) + else if (desired_height != -1) /* Height known, calculate width. */ desired_width = scale_image_size (desired_height, height, width); else