diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-28 11:29:51 +0000 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-28 11:29:51 +0000 | 
| commit | 059872072f086e0db46c77df123020409ad18a32 (patch) | |
| tree | bf102e82288fd11cda83214ea09dca99a22419fa | |
| parent | 55defb8c158bce4194436aee491ae731cce30af2 (diff) | |
Simplify hci_req_find_by_dev
| -rw-r--r-- | hcid/security.c | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/hcid/security.c b/hcid/security.c index dabbded0..82268d15 100644 --- a/hcid/security.c +++ b/hcid/security.c @@ -103,10 +103,7 @@ static int hci_req_find_by_dev(const void *data, const void *user_data)  	const struct hci_req_data *req = data;  	const int *dev = user_data; -	if (req->dev == *dev) -		return 0; - -	return -1; +	return (*dev - req->dev);  }  static int check_pending_hci_req(int dev) | 
