Thread: [Linux1394-cvslog] rev 764 - trunk
Brought to you by:
aeb,
bencollins
From: SVN U. <ben...@li...> - 2003-02-02 07:04:12
|
Author: bencollins Date: 2003-02-02 02:03:39 -0500 (Sun, 02 Feb 2003) New Revision: 764 Modified: trunk/hosts.c Log: Check return of devctl in hpsb_ref_host and use it for error/successful return value Modified: trunk/hosts.c ============================================================================== --- trunk/hosts.c (original) +++ trunk/hosts.c 2003-02-02 02:03:40.000000000 -0500 @@ -69,9 +69,11 @@ spin_lock_irqsave(&hosts_lock, flags); list_for_each(lh, &hosts) { if (host == list_entry(lh, struct hpsb_host, host_list)) { - host->driver->devctl(host, MODIFY_USAGE, 1); - host->refcount++; - retval = 1; + if (host->driver->devctl(host, MODIFY_USAGE, 1)) { + host->driver->devctl(host, MODIFY_USAGE, 1); + host->refcount++; + retval = 1; + } break; } } |