@@ -372,11 +372,11 @@ static int set_options(struct udev *udev,
372372 exit (0 );
373373
374374 case 'p' :
375- if (strcmp (optarg , "0x80" ) == 0 ) {
375+ if (streq (optarg , "0x80" )) {
376376 default_page_code = PAGE_80 ;
377- } else if (strcmp (optarg , "0x83" ) == 0 ) {
377+ } else if (streq (optarg , "0x83" )) {
378378 default_page_code = PAGE_83 ;
379- } else if (strcmp (optarg , "pre-spc3-83" ) == 0 ) {
379+ } else if (streq (optarg , "pre-spc3-83" )) {
380380 default_page_code = PAGE_83_PRE_SPC3 ;
381381 } else {
382382 log_error ("Unknown page code '%s'\n" , optarg );
@@ -449,11 +449,11 @@ static int per_dev_options(struct udev *udev,
449449 break ;
450450
451451 case 'p' :
452- if (strcmp (optarg , "0x80" ) == 0 ) {
452+ if (streq (optarg , "0x80" )) {
453453 * page_code = PAGE_80 ;
454- } else if (strcmp (optarg , "0x83" ) == 0 ) {
454+ } else if (streq (optarg , "0x83" )) {
455455 * page_code = PAGE_83 ;
456- } else if (strcmp (optarg , "pre-spc3-83" ) == 0 ) {
456+ } else if (streq (optarg , "pre-spc3-83" )) {
457457 * page_code = PAGE_83_PRE_SPC3 ;
458458 } else {
459459 log_error ("Unknown page code '%s'\n" , optarg );
0 commit comments