privetd: Remove empty device name checks
Server allows to have empty name. Buffet and privet also has no
requirement to have it not empty.
BUG=brillo:989
CQ-DEPEND=CL:274924
TEST=`FEATURES=test emerge-gizmo privetd buffet`
Change-Id: I02e141149d6eaf36a6c92676e68ab02b8287c724
Reviewed-on: https://chromium-review.googlesource.com/274883
Reviewed-by: Vitaly Buka <vitalybuka@chromium.org>
Tested-by: Vitaly Buka <vitalybuka@chromium.org>
Commit-Queue: Vitaly Buka <vitalybuka@chromium.org>
diff --git a/buffet/buffet_config.h b/buffet/buffet_config.h
index d755f08..43202a6 100644
--- a/buffet/buffet_config.h
+++ b/buffet/buffet_config.h
@@ -56,7 +56,7 @@
void set_service_url(const std::string& url) {
config_->service_url_ = url;
}
- bool set_name(const std::string& name);
+ void set_name(const std::string& name) { config_->name_ = name; }
void set_description(const std::string& description) {
config_->description_ = description;
}