<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/staging/dgap, branch v4.1</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.1</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.1'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2015-03-16T15:17:31Z</updated>
<entry>
<title>Staging: dgap: Use setup_timer to combine initialization</title>
<updated>2015-03-16T15:17:31Z</updated>
<author>
<name>Somya Anand</name>
<email>somyaanand214@gmail.com</email>
</author>
<published>2015-03-11T11:32:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2049f1ea88fa07e5912c67c4c623bb342b4b02af'/>
<id>urn:sha1:2049f1ea88fa07e5912c67c4c623bb342b4b02af</id>
<content type='text'>
The function setup_timer combines the initialization of a timer with the
initialization of the timer's function and data fields.

So, this patch combines the multiline code for timer initialization using the function
setup_timer. This issue is identified via coccinelle script.

@@
expression E1, E2, E3;
type T;
@@
- init_timer(&amp;E1);
...
(
- E1.function = E2;
...
- E1.data = (T)E3;
+ setup_timer(&amp;E1, E2, (T)E3);
|
- E1.data = (T)E3;
...
- E1.function = E2;
+ setup_timer(&amp;E1, E2, (T)E3);
|
- E1.function = E2;
+ setup_timer(&amp;E1, E2, 0);
)

Signed-off-by: Somya Anand &lt;somyaanand214@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Staging: dgap: Remove unused variable</title>
<updated>2015-03-09T12:30:40Z</updated>
<author>
<name>Haneen Mohammed</name>
<email>hamohammed.sa@gmail.com</email>
</author>
<published>2015-03-07T21:02:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6019ee4095d9a40927060d33e79344a3f34b8a96'/>
<id>urn:sha1:6019ee4095d9a40927060d33e79344a3f34b8a96</id>
<content type='text'>
This patch removes variable that was used to store only the return value of a function call.

The issue was detected and resolved using the following coccinelle script:

@@
expression ret;
identifier f;
@@

-ret =
+return
	f(...);
-return ret;

Signed-off-by: Haneen Mohammed &lt;hamohammed.sa@gmail.com&gt;
Reviewed-by: Daniel Baluta &lt;daniel.baluta@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: Avoid name collision</title>
<updated>2015-03-07T01:06:30Z</updated>
<author>
<name>Fabio Estevam</name>
<email>fabio.estevam@freescale.com</email>
</author>
<published>2015-03-03T12:55:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4c1d2dcb64db1d881d1822b5789022a03bc6abe4'/>
<id>urn:sha1:4c1d2dcb64db1d881d1822b5789022a03bc6abe4</id>
<content type='text'>
Building for ARM64 leads to the following build warning:

In file included from drivers/staging/dgap/dgap.c:66:0:
drivers/staging/dgap/dgap.h:124:0: warning: "PCI_IO_SIZE" redefined
 #define PCI_IO_SIZE  0x00200000
 ^
In file included from ./arch/arm64/include/asm/page.h:66:0,
                 from include/linux/mm_types.h:15,
                 from include/linux/sched.h:27,
                 from ./arch/arm64/include/asm/compat.h:25,
                 from ./arch/arm64/include/asm/stat.h:23,
                 from include/linux/stat.h:5,
                 from include/linux/module.h:10,
                 from drivers/staging/dgap/dgap.c:47:
./arch/arm64/include/asm/memory.h:39:0: note: this is the location of the previous definition
 #define PCI_IO_SIZE  SZ_16M
 ^

Use PCI_IO_SIZE_DGAP to avoid the name collision.

Reported-by: Olof's autobuilder &lt;build@lixom.net&gt;
Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: remove unused variable</title>
<updated>2015-03-02T00:57:36Z</updated>
<author>
<name>Aya Mahfouz</name>
<email>mahfouz.saif.elyazal@gmail.com</email>
</author>
<published>2015-02-27T13:11:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e20af8acf1b538496827cd1e3b7b29631443528a'/>
<id>urn:sha1:e20af8acf1b538496827cd1e3b7b29631443528a</id>
<content type='text'>
This patch removes a variable that was simply used to
store the return value of a function call before
returning it.

The issue was detected and resolved using the following
coccinelle script:

@@
identifier len,f;
@@

-int len;
 ... when != len
     when strict
-len =
+return
        f(...);
-return len;

Signed-off-by: Aya Mahfouz &lt;mahfouz.saif.elyazal@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: fix "if" statement that always evaluates to true</title>
<updated>2015-01-25T12:08:13Z</updated>
<author>
<name>Daeseok Youn</name>
<email>daeseok.youn@gmail.com</email>
</author>
<published>2015-01-23T11:44:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ce5b615bc29273de705188e8a827dd7663069602'/>
<id>urn:sha1:ce5b615bc29273de705188e8a827dd7663069602</id>
<content type='text'>
cppcheck warning:
(warnning) Logical disjunction always evaluates to true

Reported-by: David Binderman &lt;dcb314@hotmail.com&gt;
Signed-off-by: Daeseok Youn &lt;daeseok.youn@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: use gotos for handling error in dgap_remap()</title>
<updated>2015-01-18T00:10:48Z</updated>
<author>
<name>Daeseok Youn</name>
<email>daeseok.youn@gmail.com</email>
</author>
<published>2014-12-26T01:34:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=aa9895da3e2e6aa2674ffa54b3b927503cc47b49'/>
<id>urn:sha1:aa9895da3e2e6aa2674ffa54b3b927503cc47b49</id>
<content type='text'>
Signed-off-by: Daeseok Youn &lt;daeseok.youn@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Drivers:staging:dgap: Added a blank line after declaration</title>
<updated>2014-11-26T22:00:22Z</updated>
<author>
<name>Anjana Sasindran</name>
<email>anjanasasindran123@gmail.com</email>
</author>
<published>2014-11-20T18:57:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d268b50eb21d06cffe949ed3c1c05f1bf9939916'/>
<id>urn:sha1:d268b50eb21d06cffe949ed3c1c05f1bf9939916</id>
<content type='text'>
This patch fixes the checkpatch.pl warning:

WARNING:Missing a blank line after declaration

Signed-off-by: Anjana Sasindran &lt;anjanasasindran123@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: introducing find_board_by_major()</title>
<updated>2014-11-07T17:30:22Z</updated>
<author>
<name>Daeseok Youn</name>
<email>daeseok.youn@gmail.com</email>
</author>
<published>2014-11-06T10:27:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=48d43be475e48f5673b89c1faa6f7855d25f9a85'/>
<id>urn:sha1:48d43be475e48f5673b89c1faa6f7855d25f9a85</id>
<content type='text'>
use find_board_by_major function instead of getting a brd from static
arrary. Becasue tty's major number doesn't start zero and we can
find a brd from dgap_board[].

Signed-off-by: Daeseok Youn &lt;daeseok.youn@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: remove useless variables for saving tty's major</title>
<updated>2014-11-07T17:30:22Z</updated>
<author>
<name>Daeseok Youn</name>
<email>daeseok.youn@gmail.com</email>
</author>
<published>2014-11-06T10:27:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4c5dbca65bb0d2f5e940ca64d0876581f411d1a6'/>
<id>urn:sha1:4c5dbca65bb0d2f5e940ca64d0876581f411d1a6</id>
<content type='text'>
The board_t has a tty_struct(serial_driver and print_driver)
that has a major number. When major number is compared in
dgap_tty_open(), just use brd-&gt;serial_driver{print_driver}-&gt;major.

Signed-off-by: Daeseok Youn &lt;daeseok.youn@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: fix memory leak caused by double allocation of tty_structs</title>
<updated>2014-11-07T17:30:22Z</updated>
<author>
<name>Daeseok Youn</name>
<email>daeseok.youn@gmail.com</email>
</author>
<published>2014-11-06T10:27:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=429161d164491f430ddbc591f45dc2cd39e0e8a1'/>
<id>urn:sha1:429161d164491f430ddbc591f45dc2cd39e0e8a1</id>
<content type='text'>
The tty_struct of serial_driver and print_driver were getting
allocated twice. One is allocated in tty_alloc_driver(), the other
is in dgap_tty_register(). So remove these in dgap_tty_register().

Signed-off-by: Daeseok Youn &lt;daeseok.youn@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
