]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fframe_parameters): Minor simplification.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 2 Oct 2007 21:07:47 +0000 (21:07 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 2 Oct 2007 21:07:47 +0000 (21:07 +0000)
src/frame.c

index aa7f4ad8d76e72cd33bb5f25f553d09d966fa74a..702596e2b98e87857e91f054a41751218e367f0b 100644 (file)
@@ -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,