[PATCH 9/9] sound/ppc/snd_ps3.c: fix error return code

2012-08-19 Thread Julia Lawall
From: Julia Lawall Initialize ret before returning on failure, as done elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... when != re

Re: [PATCH 4/8] time: Condense timekeeper.xtime into xtime_sec

2012-08-19 Thread Andreas Schwab
John Stultz writes: > The timekeeper struct has a xtime_nsec, which keeps the > sub-nanosecond remainder. This ends up being somewhat > duplicative of the timekeeper.xtime.tv_nsec value, and we > have to do extra work to keep them apart, copying the full > nsec portion out and back in over and o