lkml.org 
[lkml]   [2009]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [Patch RFC 23/37] usb: gadgetfs: Convert semaphore to mutex
From
Date
On Sun, 2009-07-26 at 08:18 +0000, Thomas Gleixner wrote:
> - if (down_trylock (&epdata->lock) != 0)
> + if (mutex_trylock(&epdata->lock) != 0)


You forget the mutex_trylock has an inverted return value..

Daniel



\
 
 \ /
  Last update: 2009-07-27 00:59    [W:0.215 / U:0.028 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site