applied Martin Hurton's view() simplification, not checking arg
authorAnselm R Garbe <garbeam@gmail.com>
Mon, 18 Aug 2008 09:49:44 +0100
changeset 1327 920833e10274
parent 1326 158c50c241b5
child 1328 0fac6d3067d7
applied Martin Hurton's view() simplification, not checking arg
dwm.c
--- a/dwm.c	Mon Aug 18 09:39:52 2008 +0100
+++ b/dwm.c	Mon Aug 18 09:49:44 2008 +0100
@@ -1640,10 +1640,10 @@
 
 void
 view(const Arg *arg) {
-	if(arg && (arg->ui & TAGMASK) == tagset[seltags])
+	if((arg->ui & TAGMASK) == tagset[seltags])
 		return;
 	seltags ^= 1; /* toggle sel tagset */
-	if(arg && (arg->ui & TAGMASK))
+	if(arg->ui & TAGMASK)
 		tagset[seltags] = arg->ui & TAGMASK;
 	clearurgent();
 	arrange();