[PATCH] net: rds: chnaging the return type from int to void

2015-10-30 Thread Saurabh Sengar
as return type of function rds_iw_flush_mr_pool no where checked, chnaging its return type from int to void. also removing the unused variable rc as there is nothing to return. Signed-off-by: Saurabh Sengar <saurabh.tr...@gmail.com> --- net/rds/iw_rdma.c | 6 ++ 1 file changed, 2 inse

[PATCH v2] net: rds: changing the return type from int to void

2015-10-30 Thread Saurabh Sengar
as result of function rds_iw_flush_mr_pool is nowhere checked, changing its return type from int to void. also removing the unused variable rc as there is nothing to return Signed-off-by: Saurabh Sengar <saurabh.tr...@gmail.com> --- v2 : modify patch description, as per the comments from

[PATCH] wan: wanxl: add pci_disable_device in case of error

2015-12-11 Thread Saurabh Sengar
If there is 'no suitable DMA available' error, device should be disabled before returning Signed-off-by: Saurabh Sengar <saurabh.tr...@gmail.com> --- drivers/net/wan/wanxl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wan/wanxl.c b/drivers/net/wan/wanxl.c index e

[PATCH] gianfar: use of_property_read_bool()

2015-11-20 Thread Saurabh Sengar
use of_property_read_bool() for testing bool property Signed-off-by: Saurabh Sengar <saurabh.tr...@gmail.com> --- drivers/net/ethernet/freescale/gianfar.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/et

[PATCH] drivers: net: xgene: optimizing the code

2015-11-23 Thread Saurabh Sengar
this patch does the following: 1 . remove unnecessary if, else condition 2 . reduce one variable 3 . change the return type of 2 functions to void as there return values turn out to be 0 always after above changes Signed-off-by: Saurabh Sengar <saurabh.tr...@gmail.com> --- drive

[PATCH] net: fec: no need to test for the return type of of_property_read_u32

2015-11-23 Thread Saurabh Sengar
in case of error no need to set num_tx and num_rx = 1, because in case of error these variables will remain unchanged by of_property_read_u32 ie 1 only Signed-off-by: Saurabh Sengar <saurabh.tr...@gmail.com> --- drivers/net/ethernet/freescale/fec_main.c | 9 ++--- 1 file chan