Bugfix: Kill dead code from pipes test #333

Submitted by Mitul Karnik on Feb. 26, 2019, 10:03 a.m.

Details

Message ID 20190226100302.10767-1-mitulkarnik.92@gmail.com
State Accepted
Series "Bugfix: Kill dead code from pipes test #333"
Headers show

Commit Message

Mitul Karnik Feb. 26, 2019, 10:03 a.m.
From: Mitul Karnik <mitulkarnik.92@gmail.com>

Signed-off-by: Mitul Karnik <mitulkarnik.92@gmail.com>
---
 test/zdtm/static/pipe01.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/test/zdtm/static/pipe01.c b/test/zdtm/static/pipe01.c
index 85478b6e..ec8d1fb6 100644
--- a/test/zdtm/static/pipe01.c
+++ b/test/zdtm/static/pipe01.c
@@ -108,8 +108,8 @@  int main(int argc, char ** argv)
 		if (ret == 0)
 			break;
 		if (ret == -1) {
-			goto err;
 			pr_perror("read() failed");
+			goto err;
 		}
 		size -= ret;
 

Comments

Andrei Vagin Feb. 27, 2019, 5:50 a.m.
Applied, thanks!

On Tue, Feb 26, 2019 at 10:03:02AM +0000, mitulkarnik.92@gmail.com wrote:
> From: Mitul Karnik <mitulkarnik.92@gmail.com>
> 
> Signed-off-by: Mitul Karnik <mitulkarnik.92@gmail.com>
> ---
>  test/zdtm/static/pipe01.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/test/zdtm/static/pipe01.c b/test/zdtm/static/pipe01.c
> index 85478b6e..ec8d1fb6 100644
> --- a/test/zdtm/static/pipe01.c
> +++ b/test/zdtm/static/pipe01.c
> @@ -108,8 +108,8 @@ int main(int argc, char ** argv)
>  		if (ret == 0)
>  			break;
>  		if (ret == -1) {
> -			goto err;
>  			pr_perror("read() failed");
> +			goto err;
>  		}
>  		size -= ret;
>  
> -- 
> 2.17.1
> 
> _______________________________________________
> CRIU mailing list
> CRIU@openvz.org
> https://lists.openvz.org/mailman/listinfo/criu