retval = -EBUSY;
goto error_out;
}
- res = 0;
- __wait_event_interruptible(sdp->o_excl_wait,
- ((!list_empty(&sdp->sfds) || sdp->exclude) ? 0 : (sdp->exclude = 1)), res);
+ res = wait_event_interruptible(sdp->o_excl_wait,
+ ((!list_empty(&sdp->sfds) || sdp->exclude) ? 0 : (sdp->exclude = 1)));
if (res) {
retval = res; /* -ERESTARTSYS because signal hit process */
goto error_out;
retval = -EBUSY;
goto error_out;
}
- res = 0;
- __wait_event_interruptible(sdp->o_excl_wait, (!sdp->exclude),
- res);
+ res = wait_event_interruptible(sdp->o_excl_wait, !sdp->exclude);
if (res) {
retval = res; /* -ERESTARTSYS because signal hit process */
goto error_out;
retval = -EAGAIN;
goto free_old_hdr;
}
- retval = 0; /* following macro beats race condition */
- __wait_event_interruptible(sfp->read_wait,
+ retval = wait_event_interruptible(sfp->read_wait,
(sdp->detached ||
- (srp = sg_get_rq_mark(sfp, req_pack_id))), retval);
+ (srp = sg_get_rq_mark(sfp, req_pack_id))));
if (sdp->detached) {
retval = -ENODEV;
goto free_old_hdr;
1, read_only, 1, &srp);
if (result < 0)
return result;
- result = 0; /* following macro to beat race condition */
- __wait_event_interruptible(sfp->read_wait,
- (srp->done || sdp->detached), result);
+ result = wait_event_interruptible(sfp->read_wait,
+ (srp->done || sdp->detached));
if (sdp->detached)
return -ENODEV;
write_lock_irq(&sfp->rq_list_lock);