[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/7] use boolean_t instead of an int
From: |
Marin Ramesa |
Subject: |
[PATCH 6/7] use boolean_t instead of an int |
Date: |
Fri, 13 Sep 2013 13:31:56 +0200 |
Variable 'found' already receives values TRUE and FALSE, so why not make
it a boolean.
* device/dev_name.c: Use boolean_t instead of an int.
---
device/dev_name.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/device/dev_name.c b/device/dev_name.c
index a9056ff..dc5f835 100644
--- a/device/dev_name.c
+++ b/device/dev_name.c
@@ -216,7 +216,7 @@ boolean_t dev_change_indirect(iname, dname, unit)
{
struct dev_ops *dp;
struct dev_indirect *di;
- int found = FALSE;
+ boolean_t found = FALSE;
dev_search(dp) {
if (!strcmp(dp->d_name,dname)) {
--
1.8.1.4
- Re: [PATCH 3/7] name_equal: return early from function if src null-terminates in the loop, (continued)
Re: [PATCH 3/7] name_equal: return early from function if src null-terminates in the loop, Samuel Thibault, 2013/09/15
[PATCH 4/7] another small change in style for consistency, Marin Ramesa, 2013/09/13
[PATCH 5/7] remove preprocessor comments, Marin Ramesa, 2013/09/13
[PATCH 6/7] use boolean_t instead of an int,
Marin Ramesa <=
[PATCH 7/7] another small change in style for consistency, Marin Ramesa, 2013/09/13
Re: Small cleanup of device name routines, Samuel Thibault, 2013/09/15