blob: 39050c0793e7ba94a150fc16182a265bd61a98ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
int oldfoo(bar)
char bar;
{
return bar -2;
}
int i2c_use_client(struct i2c_client *client)
{
int ret;
ret = i2c_inc_use_client(client);
if (ret)
return ret;
if ((client->flags & I2C_CLIENT_ALLOW_USE) || (a &&
something_else))
{
if (client->flags & I2C_CLIENT_ALLOW_MULTIPLE_USE)
client->usage_count++;
else if (client->usage_count > 0)
goto busy;
else
client->usage_count++;
}
return 0;
busy:
i2c_dec_use_client(client);
return -EBUSY;
}
void get_name(void)
{
a = (int)5;
if (a)
if (b)
b--;
else
{
a++;
}
for (a=0; a < 10; a++)
if (b)
{
b--;
}
else
a++;
return;
}
|