From: Stefan Monnier Date: Tue, 2 Oct 2007 21:07:47 +0000 (+0000) Subject: (Fframe_parameters): Minor simplification. X-Git-Tag: emacs-pretest-23.0.90~10543 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=19b5e79bd5320c098905265b7374cc3774a2b2df;p=emacs.git (Fframe_parameters): Minor simplification. --- diff --git a/src/frame.c b/src/frame.c index aa7f4ad8d76..702596e2b98 100644 --- a/src/frame.c +++ b/src/frame.c @@ -2391,7 +2391,7 @@ If FRAME is omitted, return information on the currently selected frame. */) unspecified and reversed, take the frame's background pixel for foreground and vice versa. */ elt = Fassq (Qforeground_color, alist); - if (!NILP (elt) && CONSP (elt) && STRINGP (XCDR (elt))) + if (CONSP (elt) && STRINGP (XCDR (elt))) { if (strncmp (SDATA (XCDR (elt)), unspecified_bg, @@ -2405,7 +2405,7 @@ If FRAME is omitted, return information on the currently selected frame. */) else store_in_alist (&alist, Qforeground_color, tty_color_name (f, fg)); elt = Fassq (Qbackground_color, alist); - if (!NILP (elt) && CONSP (elt) && STRINGP (XCDR (elt))) + if (CONSP (elt) && STRINGP (XCDR (elt))) { if (strncmp (SDATA (XCDR (elt)), unspecified_fg,