From ae6906265726d51f5b690979988b40f1ac3c0274 Mon Sep 17 00:00:00 2001 From: Oliver Hartkopp Date: Tue, 4 Feb 2020 08:31:48 +0100 Subject: [PATCH] isotpsniffer: remove duplicated code In commit da33f96edfb9 ("isotpsniffer: Add support for llopts") the setsockopt call has been executed twice. (copy & paste issue?) Signed-off-by: Oliver Hartkopp --- isotpsniffer.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/isotpsniffer.c b/isotpsniffer.c index 44331fc..1bb4489 100644 --- a/isotpsniffer.c +++ b/isotpsniffer.c @@ -322,11 +322,6 @@ int main(int argc, char **argv) goto out; } - if ((setsockopt(s, SOL_CAN_ISOTP, CAN_ISOTP_LL_OPTS, &llopts, sizeof(llopts))) < 0) { - perror("setsockopt"); - r = 1; - goto out; - } if ((setsockopt(t, SOL_CAN_ISOTP, CAN_ISOTP_LL_OPTS, &llopts, sizeof(llopts))) < 0) { perror("setsockopt"); r = 1;